[HN Gopher] Multiple domains and languages on the same Next.js site
___________________________________________________________________
Multiple domains and languages on the same Next.js site
Author : tomsoderlund
Score : 50 points
Date : 2021-04-09 12:03 UTC (1 days ago)
(HTM) web link (github.com)
(TXT) w3m dump (github.com)
| avipars wrote:
| languages refer to i18n and not programming languges
| avipars wrote:
| languages refer to i18n and not programming languages
| avipars wrote:
| Please stop downvoting, I barely have any karma and I don't
| know how to delete this... I am aware that I posted the same
| comment twice accidentally.
| colejohnson66 wrote:
| For future reference, to delete a comment, tap/click the "x
| minutes ago" time and then tap/click "delete" at the top.
| However, after two hours or after a single reply, you can no
| longer delete the comment.
| dawnerd wrote:
| I really wish next would just support multiple domains out of the
| box. I have two sites that share 99% of the same code but just
| need slightly different styles and endpoints.
| giovannibonetti wrote:
| That can be dealed with proper CI tooling. In your build script
| you can create one folder for each website, tweak it as needed
| and deploy each of them independently.
|
| With Google Cloud Build you can even deploy them in parallel.
| dawnerd wrote:
| Yeah if been meaning to setup something like that. Was
| thinking a base docket image that has all the shared stuff
| and just mounting the different directories for each site to
| override. Just haven't had time.
| gigel82 wrote:
| The biggest thing missing for i18n is `next export` support;
| that's the only way to get true SSR (static exports) for
| something like GitHub pages.
|
| It's a shame they haven't addressed that in months despite lots
| of folks asking for it.
| wdb wrote:
| Would this approach leak the other domains associated with the
| Next.js site?
___________________________________________________________________
(page generated 2021-04-10 23:01 UTC)