-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnext.config.mjs
More file actions
39 lines (36 loc) · 1.02 KB
/
next.config.mjs
File metadata and controls
39 lines (36 loc) · 1.02 KB
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
import process from "node:process";
import withPWA from "next-pwa";
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
appDir: true, // app 디렉토리 사용 여부 확인
},
reactStrictMode: true,
sassOptions: {
additionalData: '@import "@/styles/main.scss";',
},
images: {
domains: ["zerocost-image-bucket.s3.ap-northeast-2.amazonaws.com"],
remotePatterns: [
{
protocol: "https",
hostname: "sangchu-bucket.s3.ap-northeast-2.amazonaws.com",
port: "",
pathname: "/binder/img/**",
},
{
protocol: "https",
hostname: "binder-bucket.s3.ap-northeast-2.amazonaws.com",
port: "",
pathname: "/img/**",
},
],
},
// 다른 Next.js 설정들
};
export default withPWA({
dest: "public", // PWA를 위한 service worker 파일이 생성될 경로
register: true,
skipWaiting: true,
disable: process.env.NODE_ENV === "development", // 개발 모드에서는 PWA 비활성화
})(nextConfig);