fix: use @libsql/client/http subpath to avoid native module deps
The main @libsql/client entry point pulls in the native libsql module and isomorphic-ws/isomorphic-fetch, which webpack cannot parse in EdgeOne builds. Using the http subpath provides a pure HTTP client that works in edge/serverless environments without native dependencies. Also add libsql, @libsql/isomorphic-fetch, @libsql/isomorphic-ws to the edge build alias list in next.config.js as a safety net.
This commit is contained in:
@@ -104,6 +104,9 @@ const createNextConfig = (phase) => {
|
||||
'redis',
|
||||
'@vercel/postgres',
|
||||
'pg',
|
||||
'libsql',
|
||||
'@libsql/isomorphic-fetch',
|
||||
'@libsql/isomorphic-ws',
|
||||
].map((pkg) => [
|
||||
pkg,
|
||||
path.resolve(
|
||||
|
||||
Reference in New Issue
Block a user