Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paraglide-Next Static Export #109

Open
LorisSigrist opened this issue May 6, 2024 — with Linear · 0 comments
Open

Paraglide-Next Static Export #109

LorisSigrist opened this issue May 6, 2024 — with Linear · 0 comments
Assignees

Comments

Copy link
Member

LorisSigrist commented May 6, 2024

Context

paraglide-next currently doesn't work with static export.

Blockers:

  • Uses middleware for language detection & rewrites -> Not supported
  • Uses headers to manage language state on the server -> Not supported
  • Doesn't have a [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

  • Allow using a [locale] parameter for rendering multiple pages
  • Use the [locale] parameter for server-side language state. We can use react's use hook to scope the state to the request -> No crosstalk
  • Add a way to generate <link rel="alternate"> links instead of using the Link header
  • Add Documentation

Static export is the exceptional case, but people expect support for it.

@LorisSigrist LorisSigrist self-assigned this May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant