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