N
Nuxt4mo ago
Menly

"[nuxt] instance unavailable" on Vercel with no debug information, working fine locally

I encounter the error: "Error: [nuxt] instance unavailable at (index.mjs:1:362157) at (index.mjs:1:362517) at (index.mjs:1:619872)" with no debug information, even though everything works perfectly locally. The app and all urls works perfectly when coming from the home (https://stuzh38-davide.vercel.app/). It stops working when visiting dynamic URLs directly, like this one (https://stuzh38-davide.vercel.app/product/28571) Does anybody have any idea how I could gain more insights into this issue?
1 Reply
Menly
MenlyOP4mo ago
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.
Want results from more Discord servers?
Add your server