I just followed the documentation and deployed my service, worked like a charm. But if I hit refresh when inside a route, all the js files and images returns 404. Any hint on what I should do?
This is my nuxt config file, everything else is the same as in the read me.
module.exports = {
baseUrl: process.env.BASE_URL || "http://localhost:3000",
components: true,
head: {
titleTemplate: " %s",
htmlAttrs: {
Lang: "en",
},
bodyAttrs: {
class: ["sidebar-main-active right-column-fixed"],
},
meta: [
{
charset: "utf-8",
},
{
name: "viewport",
content: "width=device-width, initial-scale=1, shrink-to-fit=no"
},
],
link: [
{
rel: "stylesheet",
href:
"https://cdn.jsdelivr.net/npm/[email protected]/fonts/remixicon.css",
},
{
rel: "stylesheet",
href:
"https://maxst.icons8.com/vue-static/landings/line-awesome/line-awesome/1.3.0/css/line-awesome.min.css",
},
],
script: [
{
type: "text/javascript",
body: true,
src: "js/jquery.min.js",
},
{ type: "text/javascript", body: true, src: "js/popper.min.js" },
{
type: "text/javascript",
body: true,
src: "js/bootstrap.min.js",
},
{
type: "text/javascript",
body: true,
src: "js/countdown.min.js",
},
{
type: "text/javascript",
body: true,
src: "js/waypoints.min.js",
},
{
type: "text/javascript",
body: true,
src: "js/jquery.counterup.min.js",
},
{
type: "text/javascript",
body: true,
src: "js/wow.min.js",
},
// {
// type: "text/javascript",
// body: true,
// src: "js/apexcharts.min.js",
// },
{
type: "text/javascript",
body: true,
src: "js/slick.min.js",
},
{
type: "text/javascript",
body: true,
src: "js/select2.min.js",
},
{
type: "text/javascript",
body: true,
src: "js/owl.carousel.min.js",
},
{
type: "text/javascript",
body: true,
src: "js/jquery.magnific-popup.min.js",
},
{
type: "text/javascript",
body: true,
src: "js/smooth-scrollbar.js",
},
{
type: "text/javascript",
body: true,
src: "js/lottie.js",
},
{
type: "text/javascript",
body: true,
src: "js/core.js",
},
{
type: "text/javascript",
body: true,
src: "js/charts.js",
},
{
type: "text/javascript",
body: true,
src: "js/animated.js",
},
{
type: "text/javascript",
body: true,
src: "js/kelly.js",
},
{
type: "text/javascript",
body: true,
src: "js/maps.js",
},
{
type: "text/javascript",
body: true,
src: "js/worldLow.js",
},
{
type: "text/javascript",
body: true,
src: "js/chart-custom.js",
},
{
type: "text/javascript",
body: true,
src: "js/custom.js",
},
],
},
router: {
prefetchLinks: true,
},
plugins: [
"~/plugins/dataApi",
],
modules: [],
css: [
"~/assets/css/animate.css",
"~/assets/css/bootstrap.min.css",
"~/assets/css/Chart.min.css",
"~/assets/css/developer.css",
"~/assets/css/dripicons.css",
"~/assets/css/flatpickr.min.css",
"~/assets/css/fontawesome.css",
"~/assets/css/ionicons.min.css",
"~/assets/css/magnific-popup.css",
"~/assets/css/owl.carousel.min.css",
"~/assets/css/responsive.css",
"~/assets/css/select2.min.css",
"~/assets/css/slick.css",
"~/assets/css/typography.css",
"~/assets/css/style.css",
"~/assets/css/variable.css",
],
build: {
extractCSS: true,
loaders: {
limit: 0,
},
publicPath: process.env.SERVERLESS_NUXT_PUBLIC_PATH,
},
};