mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-06-27 16:10:30 +08:00
e1f52c76d7
Setup bundle analyzer
33 lines
765 B
JavaScript
33 lines
765 B
JavaScript
const { i18n } = require("./next-i18next.config");
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
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,
|
|
eslint: {
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
};
|
|
|
|
const withBundleAnalyzer = require("@next/bundle-analyzer")({
|
|
enabled: process.env.ANALYZE === "true",
|
|
openAnalyzer: true,
|
|
});
|
|
|
|
module.exports = withBundleAnalyzer(nextConfig);
|