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

feat(templates/cloudflare-pages): bind local .env variables in development #3186

Closed
wants to merge 1 commit into from

Conversation

theeomm
Copy link

@theeomm theeomm commented May 13, 2022

  • Passed --binding $(cat .env) argument to the dev:wrangler script in the cloudflare-pages template as suggested here

@MichaelDeBoey MichaelDeBoey changed the title Added binding argument to copy local .env variables in development feat(templates/cloudflare-pages): bind local .env variables in development May 13, 2022
@MichaelDeBoey MichaelDeBoey requested a review from jacob-ebey May 13, 2022 19:33
@theeomm
Copy link
Author

theeomm commented Jun 21, 2022

Unfortunately passing $(cat .env) does not work on windows. Probably this should be documented.

@MichaelDeBoey
Copy link
Member

@theeomm is there a way we can make the command work on Windows as well?

@theeomm
Copy link
Author

theeomm commented Jun 21, 2022

I've been running remix in WSL for all my projects previously. I only bumped into this issue a few hours ago. Once I have it figured out, I will push an update.

@MichaelDeBoey
Copy link
Member

Going to close this one we now point people to use the .dev.vars file in the docs (see #3804)

@theeomm theeomm deleted the theeomm/cf-binding branch July 24, 2022 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants