docusaurus2-dotenv
docusaurus2-dotenv copied to clipboard
Does this plugin support development environment (ie: when running project with "docusaurus start")
Hello, thanks for making this plugin, I have a question.
When I use an env variable in a custom page:
// pages/index.js
const myEnv = process.env.TEST_ENV;
It worked when compiling with "docusaurus build", but when I start the project with "docusaurus start", I got this error "ReferenceError: process is not defined"
Is this a normal behavior?
Getting the same issue
This repository seems not updating for a long time. I forked one at https://github.com/rayyone/docusaurus2-dotenv-2 and make it works with develop environment