They should be handled either by nginx or by the client. Turned out a lot of code, including the path migration, existed to support them. Hence the large number of removals
12 lines
410 B
JavaScript
12 lines
410 B
JavaScript
const fs = require('fs');
|
|
const path = require('path');
|
|
const debug = require('debug');
|
|
|
|
const env = require('../../../config/env');
|
|
|
|
const clientPath = path.resolve(__dirname, '../../../client');
|
|
const globalConfigPath = path.resolve(__dirname, '../../../config');
|
|
|
|
fs.writeFileSync(`${clientPath}/config/env.json`, JSON.stringify(env));
|
|
fs.writeFileSync(`${globalConfigPath}/env.json`, JSON.stringify(env));
|