-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathnext.config.js
85 lines (83 loc) · 1.87 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
83
84
85
/**
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful
* for Docker builds.
*/
await import("./src/env.js");
/** @type {import("next").NextConfig} */
const config = {
/**
* If you are using `appDir` then you must comment the below `i18n` config out.
*
* @see https://github.com/vercel/next.js/issues/41980
*/
i18n: {
locales: ["en"],
defaultLocale: "en",
},
images: {
remotePatterns: [
{
protocol: "https",
hostname: "res.cloudinary.com",
},
{
protocol: "https",
hostname: "private-user-images.githubusercontent.com",
},
{
protocol: "https",
hostname: "cdn.filepicker.io",
},
{
protocol: "https",
hostname: "images.unsplash.com",
},
],
},
reactStrictMode: true,
redirects: async () => [
// NOTE: Won't work with router.push unless middleware is present
{
source: "/login",
destination: "/auth/login",
permanent: true,
},
{
source: "/signup",
destination: "/auth/signup",
permanent: true,
},
{
source: "/verify-email",
destination: "/auth/verify-email",
permanent: true,
},
{
source: "/send-verify-email",
destination: "/auth/send-verify-email",
permanent: true,
},
{
source: "/sent-verify-email",
destination: "/auth/sent-verify-email",
permanent: true,
},
{
source: "/reset-password",
destination: "/auth/reset-password",
permanent: true,
},
{
source: "/send-reset-email",
destination: "/auth/send-reset-email",
permanent: true,
},
{
source: "/sent-reset-email",
destination: "/auth/sent-reset-email",
permanent: true,
},
],
transpilePackages: ["geist", "gsap"],
};
export default config;