Skip to content

how to read environment variables in javascript when extended with pocketbase #3181

Closed Answered by ganigeorgiev
nikhil-varma-mudunuri asked this question in Q&A
Discussion options

You must be logged in to vote

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").

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by nikhil-varma-mudunuri
Comment options

You must be logged in to vote
4 replies
@ganigeorgiev
Comment options

@groenroos
Comment options

@ersinakinci
Comment options

@aymericdo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants