Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does this plugin support development environment (ie: when running project with "docusaurus start") #2

Open
huynguyen93 opened this issue Jul 31, 2021 · 2 comments

Comments

@huynguyen93
Copy link

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?

@ssolders
Copy link

ssolders commented Sep 3, 2021

Getting the same issue

@roy-rayyone
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants