Open LorisSigrist opened 2 months ago
paraglide-next currently doesn't work with static export.
paraglide-next
Blockers:
middleware
rewrites
headers
[locale]
Add a way to bypass the blockers if static export is desired
use
<link rel="alternate">
Link
Static export is the exceptional case, but people expect support for it.
+1 upvote for static build support 🙏 .More (perhaps out of date) discussion in https://gist.github.com/gaearon/9d6b8eddc7f5e647a054d7b333434ef6
+1
Context
paraglide-next
currently doesn't work with static export.Blockers:
middleware
for language detection &rewrites
-> Not supportedheaders
to manage language state on the server -> Not supported[locale]
parameter, so pages can't be rendered multiple times (very silly limitation from NextJS)Proposal
Add a way to bypass the blockers if static export is desired
[locale]
parameter for rendering multiple pages[locale]
parameter for server-side language state. We can use react'suse
hook to scope the state to the request -> No crosstalk<link rel="alternate">
links instead of using theLink
headerStatic export is the exceptional case, but people expect support for it.