Skip to content

Commit bd6decf

Browse files
authored
fix(next): turbopack error when using db-d1-sqlite package (#14558)
Fixes #14338 for real We forgot to add `@payloadcms/db-d1-sqlite` package to `serverExternalPackages`. As the install entry-point to packages that cannot be bundled (like esbuild), it needs to be externalized just like our other db adapters.
1 parent 2cb0c59 commit bd6decf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/next/src/withPayload.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export const withPayload = (nextConfig = {}, options = {}) => {
8686
'@payloadcms/db-sqlite',
8787
'@payloadcms/db-vercel-postgres',
8888
'@payloadcms/drizzle',
89+
'@payloadcms/db-d1-sqlite',
8990
// External because they install @aws-sdk/client-s3:
9091
'@payloadcms/payload-cloud',
9192
// External, because it installs import-in-the-middle and require-in-the-middle - both in the default serverExternalPackages list.

0 commit comments

Comments
 (0)