-
Notifications
You must be signed in to change notification settings - Fork 11
/
next.config.mjs
26 lines (23 loc) · 886 Bytes
/
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
import { setupDevBindings } from '@cloudflare/next-on-pages/next-dev';
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: false,
};
// 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/8e93067/internal-packages/next-dev/README.md
if (process.env.NODE_ENV === 'development') {
await setupDevBindings({
bindings: {
// Add here the Cloudflare Bindings you want to have available during local development,
// for more details on Bindings see: https://developers.cloudflare.com/pages/functions/bindings/)
//
// KV Example:
// MY_KV: {
// type: 'kv',
// id: 'xxx',
// }
}
});
}
export default nextConfig;