diff options
| author | joonhoekim <26rote@gmail.com> | 2025-11-03 10:39:51 +0900 |
|---|---|---|
| committer | joonhoekim <26rote@gmail.com> | 2025-11-03 10:39:51 +0900 |
| commit | 1c5dd9c10ce4264ab157f4a2479e2055a3487de4 (patch) | |
| tree | e05cefb406b87d6152a7c08a5b96057528c796b5 /next.config.ts | |
| parent | 98d178c8fe20a61a87e5d8f20e7d310ff6fefd6b (diff) | |
(김준회) 벤더 로그인화면 영상 더 크게 변경
Diffstat (limited to 'next.config.ts')
| -rw-r--r-- | next.config.ts | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/next.config.ts b/next.config.ts index 44275452..dda84568 100644 --- a/next.config.ts +++ b/next.config.ts @@ -10,6 +10,34 @@ const nextConfig: NextConfig = { typescript: { ignoreBuildErrors: true, }, + + // 정적 파일 캐싱 헤더 설정 + // 백그라운드 영상을 매번 다운로드 받는 문제 해결 + async headers() { + return [ + { + // 배경 영상 파일에 대한 캐시 헤더 + source: '/background-videos/:path*', + headers: [ + { + key: 'Cache-Control', + // 1년간 캐시, immutable로 재검증 없이 사용 + value: 'public, max-age=31536000, immutable', + }, + ], + }, + { + // 기타 정적 미디어 파일 (이미지, 폰트 등) + source: '/public/:path*', + headers: [ + { + key: 'Cache-Control', + value: 'public, max-age=31536000, immutable', + }, + ], + }, + ]; + }, webpack: (config) => { // [김준회] turbo의 resolveAlias와 동일한 설정을 webpack에 적용 config.resolve.alias = { |
