How to switch from staging to production environment?
In this article, you'll learn how to switch from staging to production environment.
First, translations are linked to the API key of your Weglot project, not to your website/domain or its status (staging or production).
1. I have a temporary URL that will change later
Should Weglot be installed on a staging website with a temporary URL, and you intend to modify this URL to use your own domain, then no action is required. Indeed, Weglot will continue to work and won't affect your settings or translations.
However, we recommend updating your website URL in the Weglot Dashboard > Settings > General to synchronize the Visual Editor with it:
2. I'm already managing 2 different websites
When a staging website and a production website have two different URLs with strictly identical HTML tags and content, you can:
- Manage each website from the same project by configuring Weglot on staging and production environments using the same API key. In this case, you will share the same settings and translated languages on both websites.
- Manage each website from a different project by following the relevant documentation: How can I manage my project(s)?
We recommend this approach if:
- HTML code and content aren't identical on both websites.
- You want to manage different languages and/or settings on each project.
- You want to configure the subdomain-based integration (see part "3. Additional information" ).
3. Additional information
Should you manage or plan to manage the subdomain-based integration, you must create a project for each website/domain. Otherwise, there may be conflicts between translations and/or translated website version(s). To learn more about your current integration, please consult the following article: How does Weglot manage SEO?