Skip to content

Internalization with TLDs #1453

Jan 23, 2024 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

You're right, this approach won't work with pre-rendering for two reasons:

  1. You then don't have the server glue code to read req.hostname
  2. If mydomain.fr/ and mydomain.de/ both point to the exact same statically generated index.html, how can this index.html be possibly both French and German at the same time?

Point 2. illustrates IMHO that if you want to do pre-rendering with SSR in this case, you basically need to statically generate two entire and separate websites: one in French, one in German. And you then host them on two different say GitHub Pages.

Now I'm sure that's possible to generate these two websites from the same code base but that's not what is described in https://vike.dev…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@shishkin17
Comment options

@lourot
Comment options

@shishkin17
Comment options

@lourot
Comment options

Answer selected by shishkin17
@shishkin17
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants