Files
Open-Assistant/website/next.config.js
T
2023-02-01 19:45:43 +07:00

30 lines
718 B
JavaScript

/** @type {import('next').NextConfig} */
const { i18n } = require("./next-i18next.config");
const nextConfig = {
output: "standalone",
reactStrictMode: true,
images: {
remotePatterns: [
{
protocol: "https",
hostname: "**.discordapp.com",
},
],
},
experimental: {
/* Disabling this for now only because it causes a warning in the console that cannot be silenced for eslint
If this can be resolved, we should re-enable this.
*/
// scrollRestoration: true,
},
i18n,
};
const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
openAnalyzer: true,
});
module.exports = withBundleAnalyzer(nextConfig);