Socket
Socket
Sign inDemoInstall

dotenv-quokka-plugin

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dotenv-quokka-plugin

Quokka plugin to allow .env file to be loaded at start


Version published
Weekly downloads
3K
increased by2.17%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

FAQs

Package last updated on 07 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc