sakens
sakens
NNuxt
Created by sakens on 3/2/2025 in #❓・help
Issues running Nuxt with NuxtConfig on AWS Amplify
@kapa.ai I am using the config you shared and I face a different issue, even running localy if I use the aws-amplify nitro preset. When I load a page that has a NuxtContent content I see this error: Cannot find static asset /_nuxt/builds/meta/578be365-7bf8-429f-9328-9427a3d3c531.json [GET] "/_nuxt/builds/meta/578be365-7bf8-429f-9328-9427a3d3c531.json": 404 Cannot find static asset /_nuxt/builds/meta/578be365-7bf8-429f-9328-9427a3d3c531.json I inspected the artefact and there is a file within /_nuxt/builds/meta/, but it's not one in the request. BTW, If I use the default nitro preset it works fine, but as I want to reproduce the AWS Amplify setup I am trying aws-amplify preset.
15 replies
NNuxt
Created by sakens on 3/2/2025 in #❓・help
Issues running Nuxt with NuxtConfig on AWS Amplify
@kapa.ai Okay, Let me try to prerender. Is this setup correct?
routeRules: {
'/': { prerender: true },
'/docs': { redirect: '/docs/getting-started', prerender: false }
},


nitro: {
prerender: {
routes: [
'/',
'/docs'
],
ignore: ["/api"],
crawlLinks: true
}
},
routeRules: {
'/': { prerender: true },
'/docs': { redirect: '/docs/getting-started', prerender: false }
},


nitro: {
prerender: {
routes: [
'/',
'/docs'
],
ignore: ["/api"],
crawlLinks: true
}
},
15 replies