-
Notifications
You must be signed in to change notification settings - Fork 158
/
next.config.ts
37 lines (35 loc) · 1.06 KB
/
next.config.ts
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
import type { NextConfig } from 'next';
// import path from 'path';
const nextConfig: NextConfig = {
// Recommended: this will reduce output
// Docker image size by 80%+
output: 'standalone',
// Optional: bring your own cache handler
// cacheHandler: path.resolve('./cache-handler.mjs'),
// cacheMaxMemorySize: 0, // Disable default in-memory caching
images: {
// Optional: use a different optimization service
// loader: 'custom',
// loaderFile: './image-loader.ts',
//
// We're defaulting to optimizing images with
// Sharp, which is built-into `next start`
remotePatterns: [
{
protocol: 'https',
hostname: 'images.unsplash.com',
port: '',
pathname: '/**',
search: '',
},
],
},
// Nginx will do gzip compression. We disable
// compression here so we can prevent buffering
// streaming responses
compress: false,
// Optional: override the default (1 year) `stale-while-revalidate`
// header time for static pages
// swrDelta: 3600 // seconds
};
export default nextConfig;