Access env variables in packages #869
steliyannedev
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to get access to env variables to packages/checkout-storefront but unable to load them, I've tried creating .env file in the directory, envs are not being read from there, tried importing 'env-vars' package but I get the following error:
I've tried installing fs in checkout-storefront, I've also added the --require env-vars in the NODE_OPTIONS in package.json of checkout-storefront but without any luck. Any tips or solutions would be of a great help
Beta Was this translation helpful? Give feedback.
All reactions