2021-03-05 00:32:00 +01:00
|
|
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
|
|
|
2021-03-13 01:27:31 +01:00
|
|
|
// To be included in dependencies, chakra-ui depends on it but has it as peer dependency
|
|
|
|
require("framer-motion");
|
|
|
|
|
2021-01-07 14:09:56 +01:00
|
|
|
module.exports = {
|
|
|
|
poweredByHeader: false,
|
|
|
|
reactStrictMode: true,
|
2021-03-09 18:52:19 +01:00
|
|
|
assetPrefix: process.env.ASSET_PREFIX ? process.env.ASSET_PREFIX : "",
|
2021-03-05 00:32:00 +01:00
|
|
|
webpack(config, options) {
|
|
|
|
const { dev, isServer } = options;
|
|
|
|
|
2021-03-09 23:48:16 +01:00
|
|
|
// Do not run type checking twice
|
2021-03-05 00:32:00 +01:00
|
|
|
if (dev && isServer) {
|
2021-03-06 22:54:18 +01:00
|
|
|
const ForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin");
|
2021-03-05 00:32:00 +01:00
|
|
|
config.plugins.push(new ForkTsCheckerWebpackPlugin());
|
|
|
|
}
|
|
|
|
|
|
|
|
return config;
|
|
|
|
},
|
2021-01-07 14:09:56 +01:00
|
|
|
};
|