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: {
|
|
|
|
VERSION: pkg.version,
|
2020-10-04 06:54:21 +02:00
|
|
|
FORCE_SSL: !!process.env.FORCE_SSL,
|
2020-09-27 05:46:20 +02:00
|
|
|
},
|
2020-12-04 07:28:05 +01:00
|
|
|
basePath: process.env.BASE_PATH,
|
2020-07-17 10:03:38 +02:00
|
|
|
webpack(config) {
|
|
|
|
config.module.rules.push({
|
|
|
|
test: /\.svg$/,
|
|
|
|
issuer: {
|
|
|
|
test: /\.js$/,
|
|
|
|
},
|
|
|
|
use: ['@svgr/webpack'],
|
|
|
|
});
|
|
|
|
|
|
|
|
return config;
|
|
|
|
},
|
2020-10-05 09:45:24 +02:00
|
|
|
async headers() {
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
source: '/umami.js',
|
|
|
|
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
|
|
|
};
|