Skip to content
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

[CJS-8565] local/dev mode #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jlombana-opti
Copy link

@jlombana-opti jlombana-opti commented Nov 14, 2024

Summary

  • the better way to work in local/dev is knowing in what environment we are. in cloudflare there is not a way to know that automatically. so the customer must set it up in the wrangler.toml.
  • adding the host variable it means that is running in development mode.
  • costumers are able to create variables per environment adding [env.<environment>.vars]. this variables don't inherits from other environments. thats why the customer have to define the variables on each environment.
  • to run the starter with the environment variables. the customer have to add a command in the package.json with the environment flag --env=<environment>.
  • to reduce mistakes in the url. added host, upstream_protocol, upstream_port, upstream_pathname variables. and we create the url.

Jira

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant