-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnext.config.js
More file actions
45 lines (43 loc) · 1.08 KB
/
next.config.js
File metadata and controls
45 lines (43 loc) · 1.08 KB
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
/**
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful
* for Docker builds.
*/
import "./src/env.js";
/** @type {import("next").NextConfig} */
const config = {
images: {
domains: [
"coyixansbxtnortjfiib.supabase.co",
"image.mux.com",
"avatar.iran.liara.run",
"api.dicebear.com",
],
},
async headers() {
return [
{
// Apply these headers to all routes
source: "/p/:projectSlug/r/:formId",
headers: [
{
key: "Access-Control-Allow-Origin",
value: "*", // In production, you should restrict this to specific domains
},
{
key: "Access-Control-Allow-Methods",
value: "GET, OPTIONS",
},
{
key: "Access-Control-Allow-Headers",
value: "Content-Type, Authorization",
},
{
key: "Cache-Control",
value: "public, max-age=3600, stale-while-revalidate=86400",
},
],
},
];
},
};
export default config;