-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
33 lines (32 loc) · 835 Bytes
/
next.config.js
File metadata and controls
33 lines (32 loc) · 835 Bytes
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
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
images: {
formats: ["image/webp"],
deviceSizes: [640, 750, 828, 1080, 1200, 1920],
imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
minimumCacheTTL: 31536000, // 1 year
},
experimental: {
//serverExternalPackages: ['sharp', 'onnxruntime-node'],
},
outputFileTracingExcludes: {
"*": ["public/**/*", ".git/**/*"],
"/posts": ["public/**/*"],
"/posts/[slug]": ["public/**/*"],
"/tags": ["public/**/*"],
"/tags/[slug]": ["public/**/*"],
"/api/**": ["public/**/*"],
},
rewrites: async () => [
{
source: "/rss.xml",
destination: "/api/rss",
},
],
staticPageGenerationTimeout: 1000,
env: {
POSTGRES_URL: process.env.POSTGRES_URL,
},
};
module.exports = nextConfig;