-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
36 lines (34 loc) · 985 Bytes
/
next.config.js
File metadata and controls
36 lines (34 loc) · 985 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
26
27
28
29
30
31
32
33
34
35
36
/**
* 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 = {
images: {
domains: ["res.cloudinary.com", "cdn.discordapp.com", "lh3.googleusercontent.com"],
},
rewrites: async () => [
{ source: "/rss.xml", destination: "/api/rss" },
{ source: "/donate", destination: "/api/donate" },
// WARNING: Move this to redirects if too much bandwidth is used
{
source: "/files/:path*",
destination: "https://res.cloudinary.com/mozzarella-tedi/image/upload/:path*",
},
],
redirects: async () => [
{
source: "/join",
destination:
"https://docs.google.com/forms/d/e/1FAIpQLSfEWkGAauRBi07E8-4WRlay7RyXJlLII85dt1FCV2C0m-hI1Q/viewform",
permanent: false,
},
// {
// source: "/:x",
// destination: "https://jaybots.org/tedinitiative",
// permanent: true,
// },
],
};
export default config;