-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnext.config.js
More file actions
25 lines (24 loc) · 801 Bytes
/
next.config.js
File metadata and controls
25 lines (24 loc) · 801 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
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
images: {
formats: ["image/avif", "image/webp"],
remotePatterns: [
{ hostname: "cdn.sanity.io" },
{ hostname: "source.unsplash.com" },
],
dangerouslyAllowSVG: true,
contentDispositionType: "attachment",
contentSecurityPolicy: "default-src 'self'; script-src 'none'; sandbox;",
},
typescript: {
// Set this to false if you want production builds to abort if there's type errors
ignoreBuildErrors: process.env.VERCEL_ENV === "production",
},
eslint: {
/// Set this to false if you want production builds to abort if there's lint errors
ignoreDuringBuilds: process.env.VERCEL_ENV === "production",
},
};
module.exports = nextConfig;