Closed HassanAlgoz closed 4 years ago
Same here. I think the plugin has a lack of documentation. Trying to get it works.
UPD: It seems like public env vars need to be prefixed with SNOWPACK_PUBLIC_
.
Correct, the environment variables need to be prefixed with SNOWPACK_PUBLIC_
to be used by Snowpack. This is to prevent accidental exposure of keys/secrets. I will update the README to include this note. Sorry for the confusion.
npm install --save-dev @snowpack/plugin-dotenv
.snowpack.config.json
:Yet I don't see anything added to
import.meta.env
. Am I missing something?snowpack version: 2.6.4