graphql-engine/frontend/tools/webpack/withNxEnvCleanup.js
Nicolas Beaussart 83bd95f332 frontend: fixup process env values
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8412
GitOrigin-RevId: 7e14fd7b926db0d944a915aa8b376ac2e5c5efce
2023-03-21 17:04:12 +00:00

14 lines
376 B
JavaScript

module.exports = () => config => {
config.plugins = config.plugins.map(plugin => {
if (!plugin.definitions || !plugin.definitions['process.env']) {
return plugin;
}
if (plugin.definitions['process.env']['NX_CLOUD_ACCESS_TOKEN']) {
delete plugin.definitions['process.env']['NX_CLOUD_ACCESS_TOKEN'];
}
return plugin;
});
return config;
};