dockerfile/examples/omnivore/official-src/omnivore-main/pkg/extension/replace-with-process-env.js

7 lines
179 B
JavaScript

module.exports = (content, vars) => {
for (const key in vars) {
content = content.replace(new RegExp('process.env.' + key, 'g'), process.env[key]);
}
return content;
};