File
Blob: src/workerd/api/tests/opennextjs/src/open-next.config.mjs
| 1 | // Copyright (c) 2026 Cloudflare, Inc. |
| 2 | // Licensed under the Apache 2.0 license found in the LICENSE file or at: |
| 3 | // https://opensource.org/licenses/Apache-2.0 |
| 4 | import { defineCloudflareConfig } from '@opennextjs/cloudflare'; |
| 5 | |
| 6 | const config = defineCloudflareConfig({}); |
| 7 | |
| 8 | // Add buildCommand at the root level - this is used by @opennextjs/aws |
| 9 | // to run the Next.js build. Using "node --run build" avoids needing pnpm. |
| 10 | // --webpack is required because turbopack does not work under bazel. |
| 11 | // See https://github.com/vercel/next.js/discussions/89549 |
| 12 | config.buildCommand = 'node --run build -- --webpack'; |
| 13 | |
| 14 | export default config; |