Atyantik/react-pwa

ENV variables not working

goldylucks opened this issue · 3 comments

I've tried in the 4 ways I've seen in the [docs] (https://www.reactpwa.com/docs/en/working-with-environment-variables.html), and every time process.env is an empty object.

Here's a minimal repo, steps to reproduce:

$ https://github.com/goldylucks/react-pwa.git
$ npm run start-dot-env # or start-inline-env

I also tried the downloading latest pawjs with $ npm i @pawjs/pawjs@latest with same results.

@tirthbodawala am I missing something here?

@goldylucks I have corrected the code in branch @pawjs/pawjs@ts I will do a final release as well, but the branch is very stable. Please let me know if that works for you.

hey @tirthbodawala thanks for the update!

I switched to CRA2 so won't be needing this. Thanks a ton for all your time and help man!