Menly
Menly
NNuxt
Created by Menly on 8/20/2024 in #❓・help
"[nuxt] instance unavailable" on Vercel with no debug information, working fine locally
I eventually discovered that the issue was related to the following settings:
nitro: {
preset: 'vercel-edge',
vercel: {
regions: ['fra1'],
},
prerender: {
crawlLinks: true,
routes: [
'/',
'/sitemap.xml',
'/robots.txt',
ignore: ['/checkout'],
},
},
nitro: {
preset: 'vercel-edge',
vercel: {
regions: ['fra1'],
},
prerender: {
crawlLinks: true,
routes: [
'/',
'/sitemap.xml',
'/robots.txt',
ignore: ['/checkout'],
},
},
Deploying the project with these settings places the files in the Vercel Edge Network, which apparently can't handle dynamic routes. This makes sense if hosted on a CDN, as the files are expected to be static.
2 replies