-
Notifications
You must be signed in to change notification settings - Fork 615
Description
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.