-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
32 lines (31 loc) · 866 Bytes
/
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
/** @type {import('next').NextConfig} */
const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
});
const nextConfig = {
reactStrictMode: false,
swcMinify: true,
typescript: {
ignoreBuildErrors: false,
},
images: {
remotePatterns: [
{
protocol: process.env.NEXT_PUBLIC_PROTOCOL,
hostname: process.env.NEXT_PUBLIC_API_HOSTNAME,
},
{
protocol: process.env.NEXT_PUBLIC_PROTOCOL,
hostname: process.env.NEXT_PUBLIC_STORAGE_HOSTNAME,
},
{
protocol: process.env.NEXT_PUBLIC_PROTOCOL,
hostname: 'demo-api.foodyman.org'
}
],
minimumCacheTTL: 3600,
dangerouslyAllowSVG: true,
contentSecurityPolicy: "default-src 'self'; script-src 'none'; sandbox;",
},
};
module.exports = withBundleAnalyzer(nextConfig);