.env not populating
When i am working with https://github.com/vincanger/coverlettergpt/ and i make and enter values into .env.server.server and run "wasp start db" then "wasp start"
the node api on port 3001 will not start until i manually edit .wasp/out/server/.env to enter a GOOGLE_CLIENT_ID is this expected behaivor the documentation stated to only edit .env.server.server, and when i run "wasp build" it overwrites .wasp/build/web-app and its .env and i need to manually populate it? am i understanding correctly or doing something wrong?
see more details here:https://github.com/vincanger/coverlettergpt/issues/18
3 Replies
Hi @Jamesco. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
I'm sorry, but I can only provide assistance related to the Wasp framework. The issue you're experiencing seems to be related to a different project (https://github.com/vincanger/coverlettergpt/).
However, I can tell you that in Wasp, environment variables for the server should be defined in the
.env.server
file and for the client in the .env.client
file. These files should be located in the root of your Wasp project. When you run wasp start
or wasp build
, these environment variables should be automatically picked up and used by the server and client respectively. If you're experiencing issues with this, it might be a bug or a misconfiguration in your project.
For more information on how to use environment variables in Wasp, you can refer to the official documentation (https://wasp-lang.dev/docs/project/env-vars#defining-env-vars-in-development).
If you're still experiencing issues, I recommend opening an issue in the Wasp repository or asking for help in the Wasp Discord community.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @Jamesco, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist:
Perhaps try again in 15mins?I was dumb and ".env.server.server" should hve been ".env.server"
Wohooo @Jamesco, you just became a Waspeteer level 1!