Skip to content

Optional packages still require environment variables to be set #647

@damien-schneider

Description

@damien-schneider

Describe the bug
Some environment variables for optional integrations (like Stripe) are still treated as required.
Because of this, the app fails to start if these variables aren’t defined — even when the corresponding integration isn’t used.

next-forge version
I am using version v5.2.0

To Reproduce
Steps to reproduce the behavior:

Create a new next-forge project (v5.2.0)

Skip setting any Stripe stup & environment variables

Run pnpm dev

See the startup error complaining about missing environment variables

Expected behavior
The project should start successfully even when optional integrations aren’t configured. Or if not, it should be written in the documentation how to disable them.
Environment variables for optional packages should either be optional or allow empty strings by default. And it should work as is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions