Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ tsconfig.tsbuildinfo
*.log
.env*
!.env.example
public/sw.js
public/workbox-*.js
11 changes: 10 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
/** @type {import('next').NextConfig} */
import withPWAInit from "next-pwa";

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

next-pwa (v5.6.0) 패키지는 현재 유지보수가 활발하지 않으며, Next.js 13 이상의 App Router 및 Next.js 15 환경에서 예기치 않은 빌드 오류나 캐싱 문제를 일으킬 수 있습니다. 최신 Next.js 버전을 안정적으로 지원하는 @ducanh2912/next-pwa 또는 serwist 라이브러리로 전환하는 것을 검토해 보시기 바랍니다.


const apiBaseUrl = process.env.NEXT_PUBLIC_API_BASE_URL || "http://localhost:8080";

const withPWA = withPWAInit({
dest: "public",
register: true,
skipWaiting: true,
disable: process.env.NODE_ENV === "development",
});

const nextConfig = {
reactStrictMode: true,
async rewrites() {
Expand All @@ -17,4 +26,4 @@ const nextConfig = {
},
};

export default nextConfig;
export default withPWA(nextConfig);
Loading
Loading