Skip to content

wallabyjs/dotenv-quokka-plugin

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Quokka.js plugin to enable environment variables to be loaded from a .env file.

Install

npm install dotenv-quokka-plugin

Note that you may install the plugin to the Quokka config folder instead of installing it to your local project.

Configuration

Specify the plugin in Quokka configuration settings:

{
    "plugins": ["dotenv-quokka-plugin"]
}

By default, the plugin will load the .env in your project directory.

If you need to, you may change the .env file to load:

{
    "plugins": ["dotenv-quokka-plugin"],
    "dotenv": {
        "path": ".env.test"
    }
}

Note: if the dotenv.path is a relative path, it will be located relative to your project directory.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published