-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
66 lines (60 loc) · 1.49 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//@ts-check
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { composePlugins, withNx } = require('@nx/next');
// Validate envs during build.
// const jiti = require('jiti')(__filename);
// jiti('./src/env/client.ts');
/**
* @type {import('@nx/next/plugins/with-nx').WithNxOptions}
**/
const nextConfig = {
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
compress: true,
swcMinify: true,
reactStrictMode: true,
nx: {
// Set this to true if you would like to use SVGR
// See: https://github.com/gregberge/svgr
svgr: false,
},
images: {
deviceSizes: [640, 750, 828, 1080, 1200, 1920],
remotePatterns: [
{
protocol: 'https',
hostname: 'a.storyblok.com',
},
{
protocol: 'https',
hostname: 'img.youtube.com',
},
],
},
async redirects() {
return [
// {
// source: '/privacy-policy',
// destination: 'https://www.boredgen.net/wallet/privacy-policy',
// permanent: true,
// },
{
source: '/terms-and-conditions',
destination: 'https://www.boredgen.net/wallet/terms-and-conditions',
permanent: true,
},
];
},
rewrites: async () => {
return [
{
source: '/api/ingest/:path*',
destination: 'https://eu.posthog.com/:path*',
},
];
},
};
const plugins = [
// Add more Next.js plugins to this list if needed.
withNx,
];
module.exports = composePlugins(...plugins)(nextConfig);