-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathnext.config.ts
56 lines (49 loc) · 1.09 KB
/
next.config.ts
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
// TODO(Omkar): Add PWA support
// import PWA from "next-pwa";
// const withPWA = PWA({
// dest: "public",
// disable: env.NODE_ENV === "development",
// });
import { type NextConfig } from "next";
/**
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful
* for Docker builds.
*/
import "./src/env";
const config: NextConfig = {
distDir: process.env.BUILD_DIR ?? ".next",
reactStrictMode: true,
images: {
remotePatterns: [
{
protocol: "https",
hostname: "res.cloudinary.com",
},
{
protocol: "https",
hostname: "incridea.in",
},
{
protocol: "https",
hostname: "utfs.io",
},
{
protocol: "https",
hostname: "*.ufs.sh",
},
{
protocol: "https",
hostname: "example.com",
},
// {
// protocol: "https",
// hostname: "placehold.co",
// },
],
},
// webpack: (config) => {
// config.resolve.fallback = { fs: false };
// return config;
// },
};
export default config;