-
-
Notifications
You must be signed in to change notification settings - Fork 200
Open
Description
Just a reminder to write a documentation for Encore.configureDefinePlugin(), and the integration with Symfony .env files and process.env.*.
Encore.configureDefinePlugin(options => {
options['process.env'].MY_OPTION = JSON.stringify('foo');
});For example for configuring sentry DNS from .env file:
Encore.configureDefinePlugin(options => {
const env = dotenv.config();
if (env.error) {
throw env.error;
}
options['process.env'].SENTRY_DSN = JSON.stringify(env.parsed.SENTRY_DSN);
});abranhe, DerDu, vitalii-koreniev, dennis-hoffmann, ttibensky and 3 more
Metadata
Metadata
Assignees
Labels
No labels