How to use Env variables in main.wasp?
I want to set the email authentication
fromField.name
to process.env.FROM_NAME
and fromField.email
to process.env.FROM_EMAIL
kapa.ai•16d ago
Hi @periabyte. 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 currently, Wasp doesn't support the use of environment variables directly in the
main.wasp
file. This means you can't dynamically set the fromField.name
and fromField.email
to process.env.FROM_NAME
and process.env.FROM_EMAIL
respectively.
This issue has been discussed in the Wasp community, and they are looking into supporting dynamic variables in the future, possibly through a TypeScript-based config that would enable customization based on local environment variables (source (https://discord.com/channels/686873244791210014/1223180353460506695)).
In the meantime, you can use the SKIP_EMAIL_VERIFICATION_IN_DEV
environment variable to avoid sending emails in development when you sign up (source (https://discord.com/channels/686873244791210014/1223180353460506695)).
For more information on setting up email authentication in Wasp, you can refer to the official documentation (https://wasp-lang.dev/docs/auth/email#1-enable-email-authentication-in-mainwasp).
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @periabyte, 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?Filip•16d ago
Hey @periabyte, looks like the bot gave the correct answer
@miho tagging you just in case I'm missing some knowlege, but this looks correct?
miho•16d ago
Sounds correct 👍
Filip•15d ago
@periabyte Let us know if this helps
periabyte•15d ago
Yup, it helps. Thanks!
2.7KMembers
View on DiscordWant results from more Discord servers?
More Postscan not find "wasp/server/_types" module or declarationany suggestion? this error won't effect dev, but I can't have the right type with action's params arDisable email loginIf I only want Google signup, is there a way to remove the email login? I tried commenting
```
emailDo I have a way to use useLazyQuery ?My app filters some data.
I need to be able to refetch whenever the user clicks on "search" with theWhere to see migration files?I have messed up one migration (because I had to delete my local code), and now I don't know where tFile upload size limitI'm trying to implement max file upload size to the s3 bucket. I've handled the front-end but I worrAuthis there a sample bypass to login the auth while in developmentQuick Start not working?I'm following this tutorial: https://wasp-lang.dev/docs/quick-start
After opening my terminal and rI cant see ubunbtu on my Linux sub system folderI just started with this programming stuff and i wanted to try my app with this new ai called magegpIs it possible to separate client and server wasp build?each time I update stuff on client, and want to push to netlify, I need to run wasp build, but it refly.io deployment errorI tried to deploy to fly.io, and I set DATABASE_URL, and I tested it can connect successfully with dfront end developers demand in job marketCan anyone please tell me about the demand of a beginner level front end developer in job market nowPassing Context for Dependency InjectionIs there a standard pattern for passing the context object for database interaction to functions?
WGetting Updates to the Open SaaS Template (not working?)I am following the guide in [Getting Started](https://docs.opensaas.sh/start/getting-started/), howeCant find app and blog in my folder but it says wasp already installed.Hi everyone, ive installed Wasp but i cant find where the app and blog folder is at.
It keeps says NsignupWhen defining action in main file If i dont want to use entity as i dont want to store in the db. CaStoring additional data in sessionHi everyone 😉 I'm exploring a possibility to develop my new project in WASP which looks really awes