Skip to content

Plugin to handle env vars a la CRA #341

@robinvdvleuten

Description

@robinvdvleuten

I've extracted another plugin from my created Preact SPA. It is a plugin to have support for environment variables a la CRA. Any env var prefixed with PREACT_APP_ can be used in your code as const secret = process.env.PREACT_APP_SUPER_SECRET for example. It would be nice if it can be added to the wiki :) You can see the plugin here => https://github.com/robinvdvleuten/preact-cli-plugin-env-vars

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions