mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-10 20:30:53 -05:00
47 lines
886 B
JavaScript
47 lines
886 B
JavaScript
const withImages = require("next-images");
|
|
const withBundleAnalyzer = require("@next/bundle-analyzer")({
|
|
enabled: process.env.ANALYZE === "true",
|
|
});
|
|
|
|
module.exports = withBundleAnalyzer(
|
|
withImages({
|
|
future: {
|
|
webpack5: true,
|
|
},
|
|
async redirects() {
|
|
return [
|
|
{
|
|
source: "/sr",
|
|
destination: "/sr/leaderboards",
|
|
permanent: true,
|
|
},
|
|
];
|
|
},
|
|
experimental: {
|
|
optimizeFonts: true,
|
|
},
|
|
images: {
|
|
domains: ["www.countryflags.io"],
|
|
},
|
|
// i18n: {
|
|
// v-- import from lib/locales
|
|
// locales: [
|
|
// "de",
|
|
// "el",
|
|
// "en",
|
|
// "es",
|
|
// "fr",
|
|
// "it",
|
|
// "ja",
|
|
// "ko",
|
|
// "nl",
|
|
// "pt",
|
|
// "ru",
|
|
// "sv",
|
|
// "zh",
|
|
// ],
|
|
// defaultLocale: "en",
|
|
// },
|
|
})
|
|
);
|