Live data from Hacker News

Multiple domains and languages on the same Next.js site

github.com

1–10 of 12 posts

Re: Multiple domains and languages on the same Next.js site

#4
post #2

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.

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.

Re: Multiple domains and languages on the same Next.js site

#7
post #2

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.

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.

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.

Re: Multiple domains and languages on the same Next.js site

#10
post #6

languages refer to i18n and not programming languages

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.
Post reply on HN