-
Notifications
You must be signed in to change notification settings - Fork 1
/
next.config.js
101 lines (98 loc) · 2.06 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/** @type {import('next').NextConfig} */
const ANALYTICS_URL = process.env.NEXT_PUBLIC_UMAMI_URL + '/:match*' || 'no_analytics_url'
const nextConfig = {
// reactStrictMode: true,
experimental: {
serverActions: true,
// without this, 'Error: Expected Upload to be a GraphQL nullable type.'
serverComponentsExternalPackages: ['graphql'],
},
eslint: {
ignoreDuringBuilds: true,
},
typescript: {
ignoreBuildErrors: true,
},
async redirects() {
return [
{
source: '/',
destination: '/home',
permanent: true,
},
];
},
images: {
remotePatterns: [
{
protocol: 'http',
hostname: 'localhost',
port: '3001',
pathname: '/assets/**',
},
{
protocol: 'http',
hostname: 'frostwifi.lan',
port: '3001',
pathname: '/assets/**',
},
{
protocol: 'http',
hostname: 'localhost',
port: '3000',
pathname: '/assets/**',
},
{
protocol: 'https',
hostname: 'cdn.dribbble.com',
port: '',
pathname: '/**',
},
{
protocol: 'https',
hostname: 'res.cloudinary.com',
port: '',
pathname: '/dh5vxixzn/**',
},
{
protocol: 'https',
hostname: 'i.pinimg.com',
port: '',
pathname: '/originals/**',
},
{
protocol: 'https',
hostname: 'cdn.pixabay.com',
port: '',
pathname: '/photo/**',
},
{
protocol: 'https',
hostname: 'cloutdrive.williamusic.com',
port: '',
pathname: '/**',
},
{
protocol: 'https',
hostname: 'images.unsplash.com',
port: '',
pathname: '/**',
},
{
protocol: 'https',
hostname: 'media.giphy.com',
port: '',
pathname: '/media/**',
},
],
},
async rewrites() {
return [
{
source: '/stts/:match*',
destination: ANALYTICS_URL,
},
]
},
}
module.exports = nextConfig