how to read environment variables in javascript when extended with pocketbase #3181
-
same as title |
Beta Was this translation helpful? Give feedback.
Answered by
ganigeorgiev
Aug 24, 2023
Replies: 2 comments 4 replies
-
The Alternatively, you can also use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
nikhil-varma-mudunuri
-
how can i read data in .env file and use in code , this code |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
process
module is loaded so you should be able to access env variables similar as in Node.js, aka.process.env.MY_VAR
.Alternatively, you can also use
$os.getenv("MY_VAR")
.