nuxt / content

The file-based CMS for your Nuxt application, powered by Markdown and Vue components.
https://content.nuxt.com
MIT License
3.13k stars 627 forks source link

fix(prerender): ensure `/` exists inside prerender rotues #2673

Closed farnabaz closed 4 months ago

farnabaz commented 4 months ago

🔗 Linked issue

❓ Type of change

📚 Description

📝 Checklist

cloudflare-workers-and-pages[bot] commented 4 months ago

Deploying nuxt-content with  Cloudflare Pages  Cloudflare Pages

Latest commit: 48d10a3
Status: ✅  Deploy successful!
Preview URL: https://b9c3b835.nuxt-content-1il.pages.dev
Branch Preview URL: https://prerender-home.nuxt-content-1il.pages.dev

View logs

stefanprobst commented 4 months ago

@farnabaz i think this breaks nuxt/i18n, which intentionally removes "/" from prerendering so redirecting to "/en" still works. see https://github.com/nuxt-modules/i18n/pull/2894

ptdev commented 4 months ago

@farnabaz i think this breaks nuxt/i18n, which intentionally removes "/" from prerendering

Confirming that it did indeed break i18n. See #2678

ydnar commented 4 months ago

This PR, with its unilateral addition of / to the prerender list, broke production for us.