-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathnext.config.mjs
More file actions
40 lines (35 loc) · 837 Bytes
/
next.config.mjs
File metadata and controls
40 lines (35 loc) · 837 Bytes
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
import createPWAPlugin from 'next-pwa';
import createNextIntlPlugin from 'next-intl/plugin';
const withPWA = createPWAPlugin({
dest: 'public',
register: true,
skipWaiting: true,
disable: process.env.NODE_ENV === 'development'
})
const withNextIntl = createNextIntlPlugin();
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
reactStrictMode: true,
trailingSlash: false,
images: {
qualities: [25, 50, 75, 100],
unoptimized: true,
remotePatterns: [
{
protocol: 'https',
hostname: 'cdn.discordapp.com'
},
{
protocol: 'https',
hostname: 'cdn.discord.com'
},
{
protocol: 'https',
hostname: 'avatars.githubusercontent.com'
}
]
}
}
const PLUGINS = [withPWA, withNextIntl];
export default PLUGINS.reduce((acc, plugin) => plugin(acc), nextConfig);