You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you're using the @remix-run/cloudflare-pages or @remix-run/cloudflare adapters, env variables work a little differently. You'll need to define your local environment variables in the .dev.vars file. It has the same syntax as .env example file mentioned above.
Then, they'll be available via Remix's context.cloudflare.env in your loader/action functions:
Note that .env and .dev.vars files are only for development. You should not use them in production, so Remix doesn't load them when running remix serve. You'll need to follow your host's guides on adding secrets to your production server, via the links below. https://remix.run/docs/en/main/guides/envvars#local-development
ローカルAPIに繋いで動作確認とかするために、環境を使ってAPIのベースURLを切り替えられるようにする
参考資料
The text was updated successfully, but these errors were encountered: