-
-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathnext.config.ts
More file actions
53 lines (50 loc) · 1.26 KB
/
next.config.ts
File metadata and controls
53 lines (50 loc) · 1.26 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import type { NextConfig } from "next"
const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
})
const nextConfig: NextConfig = withBundleAnalyzer({
output: "standalone",
async headers() {
return [
{
source: "/download",
headers: [
{ key: "Cache-Control", value: "no-cache, no-store, must-revalidate" },
{ key: "Pragma", value: "no-cache" },
{ key: "Expires", value: "0" },
],
},
{
source: "/api/download",
headers: [
{ key: "Cache-Control", value: "no-cache, no-store, must-revalidate" },
{ key: "Pragma", value: "no-cache" },
{ key: "Expires", value: "0" },
],
},
]
},
experimental: {
optimizePackageImports: ["@phosphor-icons/react"],
},
serverExternalPackages: ["shiki", "vscode-oniguruma", "ssh2"],
images: {
remotePatterns: [
{
protocol: "https",
hostname: "*.supabase.co",
port: "",
pathname: "/storage/v1/object/public/**",
},
],
domains: [
'www.google.com',
'img.youtube.com',
],
},
eslint: {
// @todo: remove before going live
ignoreDuringBuilds: true,
},
})
export default nextConfig