Multiple Environments
Users on the Business tier or higher can create multiple workspaces, allowing to have multiple domains. This comes in handy when needing to switch between environments, say between your production and staging environment.
Here is an example of a configuration with two domains:
domain | path | source images folder |
---|---|---|
prod.twic.pics | / | https://www.my-company.com/assets/ |
/logo | https://media.my-company.com/images/logo/ | |
/media | https://media.my-company.com/web/ | |
staging.twic.pics | / | https://staging.my-company.com/assets/ |
/logo | https://media.my-company.com/images/logo/ | |
/media | https://media.my-company.com/web/ |
All you have to do now is reference the domain corresponding to the environment you are currently in (prod.twic.pics
or staging.twic.pics
) throughout your code base, which is usually as simple as setting a single variable and using it wherever you reference your TwicPics domain.