1
0
mirror of https://github.com/barthuijgen/factorio-sites.git synced 2025-03-04 15:51:24 +02:00
factorio-sites/apps/blueprints/next.config.js

26 lines
751 B
JavaScript
Raw Normal View History

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