forked from manuartero/soc.gg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
32 lines (30 loc) · 884 Bytes
/
next.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
const locales = require("./lib/collections/locale.json");
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
i18n: {
// These are all the locales you want to support in
// your application
locales: locales
.filter((locale) => locale.code)
// Disable swedish translations, because it's only used as placeholders
.filter((locale) => locale.code !== "sv")
.map((locale) => locale.code),
// This is the default locale you want to be used when visiting
// a non-locale prefixed path e.g. `/hello`
defaultLocale: "en",
},
images: {
domains: ["purecatamphetamine.github.io"],
},
async redirects() {
return [
{
source: "/ads.txt",
destination: "https://api.nitropay.com/v1/ads-1110.txt",
permanent: true,
},
];
},
};
module.exports = nextConfig;