Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion pages/cloudflare/howtos/workerd.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ export default nextConfig;

### Packages known to have `workerd` specific code

- `postgres`
- `@libsql/isomorphic-ws`
- `@prisma/client` (and the generated `.prisma/client`)
- `jose`
- `postgres`

Please report an issue on [the adapter GH repository](https://github.com/opennextjs/opennextjs-cloudflare/issues) to have packages added to this list.
14 changes: 14 additions & 0 deletions pages/cloudflare/troubleshooting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,17 @@ If you see an error similar to:

You are proably using a turbopack enabled build (`next build --turbo`) which is not currently supported by OpenNext.
Change your build command to `next build` to fix the issue.

### `X [ERROR] Could not resolve "<package>"`

When you see the following error during the build:

```text
⚙️ Bundling the OpenNext server...

X [ERROR] Could not resolve "<package name>"
```

It might be because the package contains workerd specific code.

Check this [howto](/cloudflare/howtos/workerd) for a solution.