-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.mjs
39 lines (36 loc) · 1.14 KB
/
next.config.mjs
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 path from 'path';
import createWithMakeswift from "@makeswift/runtime/next/plugin";
const withMakeswift = createWithMakeswift();
const 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 withMakeswift(nextConfig);