flutter_dotenv icon indicating copy to clipboard operation
flutter_dotenv copied to clipboard

hide .env file on the web

Open rodrigorafaeldamaceno opened this issue 3 years ago • 2 comments

Hi, thanks for this package.

I'm using it in a web project, but I noticed that the .env file is available via inspector, I think because it's in assets, is there any way I can hide it?

Screen Shot 2022-10-03 at 12 12 20

rodrigorafaeldamaceno avatar Oct 03 '22 15:10 rodrigorafaeldamaceno

Related issue https://github.com/java-james/flutter_dotenv/issues/51

Jay-flow avatar Oct 05 '22 03:10 Jay-flow

@rodrigorafaeldamaceno , you shouldn't put secrets on the frontend. It's an env file intended to put endpoints, tokens, flags that will always be visible to the frontend even if compiled into the code.

kevtechi avatar Apr 15 '23 17:04 kevtechi