Skip to content

Commit 005befc

Browse files
authored
fix: #7488, cant deploy SQLite to Vercel (#7490)
## Description Closes #7488 Note - you'll also need to manually have `@libsql/client` installed in your Next.js repository. This is not ideal, but it might be outside the scope of what we can handle internally. - [x] I have read and understand the [CONTRIBUTING.md](https://github.com/payloadcms/payload/blob/main/CONTRIBUTING.md) document in this repository.
1 parent a79e92a commit 005befc

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

packages/next/src/withPayload.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@ export const withPayload = (nextConfig = {}) => {
2525
...(nextConfig.experimental?.outputFileTracingExcludes?.['**/*'] || []),
2626
'drizzle-kit',
2727
'drizzle-kit/payload',
28-
'libsql',
28+
],
29+
},
30+
outputFileTracingIncludes: {
31+
'**/*': [
32+
...(nextConfig.experimental?.outputFileTracingIncludes?.['**/*'] || []),
33+
'@libsql/client',
2934
],
3035
},
3136
turbo: {
@@ -64,8 +69,8 @@ export const withPayload = (nextConfig = {}) => {
6469
...(nextConfig?.serverExternalPackages || []),
6570
'drizzle-kit',
6671
'drizzle-kit/payload',
67-
'libsql',
6872
'pino',
73+
'libsql',
6974
'pino-pretty',
7075
'graphql',
7176
],

0 commit comments

Comments
 (0)