-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
27 lines (27 loc) · 861 Bytes
/
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
// next.config.js
const withNextra = require("nextra")({
theme: "nextra-theme-docs",
themeConfig: "./theme.config.jsx",
defaultShowCopyCode: true,
// optional: add `unstable_staticImage: true` to enable Nextra's auto image import
});
module.exports = withNextra({
images: {
loader: "akamai",
path: "/",
domains: ["discordapp.com"],
},
async headers() {
return [
{
source: "/:path(!api)",
headers: [
{
key: "Content-Security-Policy",
value: `default-src 'none'; script-src 'self'; connect-src 'self'; img-src 'self' ${process.env.NEXT_PUBLIC_SUPABASE_URL}; style-src 'self';base-uri 'self';form-action 'self'`,
},
],
},
];
},
});