For remix server, remix doesn’t support multiple environment variables, only support .env file for local development to override variables.
so you need define environment variables in each servers.
- local development :
.env - other environment : set variables to each server
on the other hand, app extension has a solution to load environment variables.
npm run shopify app deploy -- -c sandboxusesshopify.app.sandbox.tomland.env.sandboxnpm run shopify app deploy -- -c productionusesshopify.app.production.tomland.env.production
Hope this helps ![]()