forked from mfts/papermark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
82 lines (81 loc) · 1.92 KB
/
next.config.js
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
pageExtensions: ["js", "jsx", "ts", "tsx", "mdx"],
images: {
minimumCacheTTL: 2592000, // 30 days
remotePatterns: [
{
// static images and videos
protocol: "https",
hostname: "dknlay9ljaq1f.cloudfront.net",
},
{
// special document pages
protocol: "https",
hostname: "d36r2enbzam0iu.cloudfront.net",
},
{
protocol: "https",
hostname: "dev-to-uploads.s3.amazonaws.com",
},
{
// twitter img
protocol: "https",
hostname: "pbs.twimg.com",
},
{
// linkedin img
protocol: "https",
hostname: "media.licdn.com",
},
{
// google img
protocol: "https",
hostname: "lh3.googleusercontent.com",
},
{
// local img
protocol: "https",
hostname: "localhost",
port: "3000",
},
{
// staging img
protocol: "https",
hostname: "36so9a8uzykxknsu.public.blob.vercel-storage.com",
},
{
// production img
protocol: "https",
hostname: "yoywvlh29jppecbh.public.blob.vercel-storage.com",
},
{
// development / staging hosted user img
protocol: "https",
hostname: "d16lliwzxm242j.cloudfront.net",
},
{
// production hosted user img
protocol: "https",
hostname: "d1ff41ind5a7r1.cloudfront.net",
},
],
},
transpilePackages: ["@trigger.dev/react"],
async rewrites() {
return [
{
source: "/ingest/:path*",
destination: "https://eu.posthog.com/:path*",
},
];
},
experimental: {
outputFileTracingIncludes: {
"/api/mupdf/*": ["./node_modules/mupdf/lib/*.wasm"],
},
missingSuspenseWithCSRBailout: false,
},
};
module.exports = nextConfig;