-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
next.config.mjs
36 lines (33 loc) · 1.08 KB
/
next.config.mjs
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
import { setupDevPlatform } from "@cloudflare/next-on-pages/next-dev";
/** @type {import('next').NextConfig} */
const nextConfig = {
// Fixes some FluentUI issues
// eslint-disable-next-line next-on-pages/no-unsupported-configs
reactStrictMode: false,
eslint: {
// Warning: This allows production builds to successfully complete even if
// your project has ESLint errors.
ignoreDuringBuilds: true,
},
async headers() {
return [
{
source: "/api/v1/discord/forum/:id",
headers: [
{
key: "Cache-Control",
value: "no-store, max-age=0",
},
],
},
];
},
};
// Here we use the @cloudflare/next-on-pages next-dev module to allow us to use bindings during local development
// (when running the application with `next dev`), for more information see:
// https://github.com/cloudflare/next-on-pages/blob/5712c57ea7/internal-packages/next-dev/README.md
if (process.env.NODE_ENV === "development") {
console.log("Setting up dev platform");
await setupDevPlatform();
}
export default nextConfig;