-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathnext.config.mjs
More file actions
45 lines (41 loc) · 924 Bytes
/
next.config.mjs
File metadata and controls
45 lines (41 loc) · 924 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
41
42
43
44
45
/** @type {import('next').NextConfig} */
import PWAOptions from 'next-pwa';
const withPWA = PWAOptions({
dest: 'public',
register: true,
skipWaiting: true,
});
const nextConfig = withPWA({
env: {
DB_NAME: process.env.DB_NAME,
},
reactStrictMode: true,
output: 'standalone',
swcMinify: true,
async redirects() {
return [
// {
// source: '/',
// destination: '/announcement',
// permanent: false,
// },
];
},
webpack: (config) => {
config.module.rules.push({
test: /\.svg$/i,
issuer: /\.[jt]sx?$/,
use: ['@svgr/webpack'],
});
return config;
},
images: {
domains: [
'github.com',
'minio-api.billilge.site', // 파일서버 이미지 도메인 추가
],
dangerouslyAllowSVG: true,
contentSecurityPolicy: "default-src 'self'; img-src 'self' data: https:;",
},
});
export default nextConfig;