2020-07-17 10:03:38 +02:00
|
|
|
require('dotenv').config();
|
2020-09-10 01:12:29 +02:00
|
|
|
const pkg = require('./package.json');
|
2020-07-17 10:03:38 +02:00
|
|
|
|
|
|
|
module.exports = {
|
2020-09-10 01:12:29 +02:00
|
|
|
env: {
|
2022-06-24 10:54:55 +02:00
|
|
|
currentVersion: pkg.version,
|
2022-06-22 11:28:23 +02:00
|
|
|
loginDisabled: process.env.DISABLE_LOGIN,
|
2022-06-24 10:54:55 +02:00
|
|
|
updatesDisabled: process.env.DISABLE_UPDATES,
|
2022-07-16 08:53:31 +02:00
|
|
|
telemetryDisabled: process.env.DISABLE_TELEMETRY,
|
2020-09-27 05:46:20 +02:00
|
|
|
},
|
2022-02-19 06:30:41 +01:00
|
|
|
basePath: process.env.BASE_PATH,
|
2022-07-07 18:24:32 +02:00
|
|
|
output: 'standalone',
|
2021-11-22 23:53:36 +01:00
|
|
|
eslint: {
|
|
|
|
ignoreDuringBuilds: true,
|
|
|
|
},
|
2020-07-17 10:03:38 +02:00
|
|
|
webpack(config) {
|
|
|
|
config.module.rules.push({
|
|
|
|
test: /\.svg$/,
|
2021-07-13 05:25:24 +02:00
|
|
|
issuer: /\.js$/,
|
2020-07-17 10:03:38 +02:00
|
|
|
use: ['@svgr/webpack'],
|
|
|
|
});
|
|
|
|
|
|
|
|
return config;
|
|
|
|
},
|
2020-10-05 09:45:24 +02:00
|
|
|
async headers() {
|
|
|
|
return [
|
|
|
|
{
|
2022-02-27 11:53:24 +01:00
|
|
|
source: `/(.*\\.js)`,
|
2020-10-05 09:45:24 +02:00
|
|
|
headers: [
|
|
|
|
{
|
|
|
|
key: 'Cache-Control',
|
|
|
|
value: 'public, max-age=2592000', // 30 days
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2020-12-04 07:28:05 +01:00
|
|
|
];
|
2020-10-05 09:45:24 +02:00
|
|
|
},
|
2020-07-17 10:03:38 +02:00
|
|
|
};
|