-
Notifications
You must be signed in to change notification settings - Fork 2
/
next.config.js
52 lines (50 loc) · 1.15 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
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
scrollRestoration: true,
newNextLinkBehavior: true
},
images: {
minimumCacheTTL: 3600,
deviceSizes: [96, 128, 256, 384, 512, 640, 750, 828, 1080, 1200, 1920, 2048, 3840],
imageSizes: [16, 32, 48, 64],
remotePatterns: [
{
protocol: "https",
hostname: "**",
},
],
},
reactStrictMode: process.env.NODE_ENV === 'production',
swcMinify: true,
async redirects() {
return [
{
source: '/discord',
destination: 'https://discord.gg/7eCKW2Y3az',
permanent: true
},
{
source: '/twitter',
destination: 'https://twitter.com/PinstaApp',
permanent: true
},
{
source: '/lenster',
destination: 'https://lenster.xyz/u/pinsta',
permanent: true
},
{
source: '/feedback',
destination: 'https://pinsta.canny.io/',
permanent: true
},
{
source: '/github',
destination: 'https://github.com/jsonpreet/Pinsta',
permanent: true
}
];
}
}
module.exports = nextConfig