Skip to content

Commit b630c46

Browse files
Claudehotlong
andauthored
Add @libsql/client to build-vercel.sh copy logic
- Update build-vercel.sh to copy @libsql/client to local node_modules - Remove outdated comment about @libsql/client being bundled - Ensures @libsql/client is available in Vercel serverless function Agent-Logs-Url: https://github.com/objectstack-ai/framework/sessions/bba47546-4868-4fbb-94cc-909dd5f6757d Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 3f8a348 commit b630c46

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

apps/studio/scripts/build-vercel.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,8 @@ node scripts/bundle-api.mjs
3838
# The vercel.json includeFiles pattern references node_modules/ relative to
3939
# apps/studio/, so we must copy the actual module files here for Vercel to
4040
# include them in the serverless function's deployment package.
41-
#
42-
# Note: @libsql/client is now bundled by esbuild, so we no longer copy it.
4341
echo "[build-vercel] Copying external native modules to local node_modules..."
44-
for mod in better-sqlite3; do
42+
for mod in better-sqlite3 @libsql/client; do
4543
src="../../node_modules/$mod"
4644
if [ -e "$src" ]; then
4745
dest="node_modules/$mod"

0 commit comments

Comments
 (0)