`.production.vars` will not work?
# pages-help
s
Hey there, I am using workspace with qwik, which is not working with auto deploy in pages. I have managed to deploy it locally. Now how do I use the env variables while running
cd apps/webapp && npx wrangler pages publish dist --project-name authc1
? I have added a
.production.vars
in
apps/webapp
folder.
k
.dev.vars is only for local development, there are no other files that are considered by publish
You’ll have to create the variables in the dashboard manually
s
So if I add them manually, and publish through my terminal it would still work? I assumed, env variables will be used only during the build.

https://cdn.discordapp.com/attachments/1110591180435116184/1110592227614408784/Screenshot_2023-05-23_at_9.05.57_PM.png

e
Theyre used in both the build and the running function
s
Ahh perfect, I was not aware of it. I am giving it a try now.
that worked, thank you