-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Use single Gatsby app to deploy localized sites across domains. #5330
Comments
#5270 could help, since we'd likely be able to use the same JS bundle for each locale, but i'm not sure if it gets to the i18n piece. After thinking about it more, it seems as though #4050 may get me going in the right direction, where we pass in a locale and use it as an argument in a graphql query. |
I am still interested in this. What I would prefer to do is to build pages for all markets within a single app. I tried to archive this by appending
And this works fine on netlify side, but for gatsby I wonder if somebody else has similar issue and found the solution (other than using separate applications 😃 ). Since using domains instead of subfolders is pretty popular approach. |
For what it's worth, we never found a good solution here. Our workaround has been a little node script that runs |
Facing this issue right now - all the other pages within my app are fine (I am using the localized slugs for those pages, so the paths are different), but I am trying to rewrite domain1.com to domain2.com/spanish. Everything works fine on the netlify side, but unfortunately gatsby updates the url in the navbar to domain1.com/spanish. |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open! As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing! Thanks for being a part of the Gatsby community! 💪💜 |
Hey again! It’s been 30 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing! Thanks again for being part of the Gatsby community! |
@kitos Did you manage to figure this out? |
@scnroy Hi, did you find an answer to your issue? I have the same problem. |
Hey, I managed to have several domains (*.com, *.es, *.uk...) by disabling client side routing. I followed this issue: #4337 and the redirect and was gone after adding this plugin: https://github.com/wardpeet/gatsby-plugin-static-site Hope it helps! |
that also works for me without using a plugin. |
I am using Gatsby, Contentful for delivery APIs, and deployed on Netlify. |
As I understand it, the i18n pattern that I’ve seen for Gatsby allows you to toggle between different locales on the same path via the app’s internal routing system:
I'm trying to figure out how to, at build, churn out a whole site per locale so that we can deploy each at its own country-specific domain:
The imagined output is similar to #2189 (multiple public folders—
public_en-US
public_en-UK
...), instead, there's a singlesrc
folder that would be locale-aware and query for data accordingly during each build. Could this be accomplished with a plugin or would this be an enhancement?This project has been a godsend, thanks to everyone for all the work ❤️
The text was updated successfully, but these errors were encountered: