Skip to content

Add serverless and bundler deployment guide for TypeScript SDK#385

Open
Pulkit7070 wants to merge 2 commits into
tursodatabase:mainfrom
Pulkit7070:docs/serverless-bundler-guide
Open

Add serverless and bundler deployment guide for TypeScript SDK#385
Pulkit7070 wants to merge 2 commits into
tursodatabase:mainfrom
Pulkit7070:docs/serverless-bundler-guide

Conversation

@Pulkit7070

Copy link
Copy Markdown

Adds a dedicated guide for deploying @libsql/client in bundled serverless environments (AWS Lambda, Vercel, Netlify, SST, Cloudflare Workers).

The Cannot find module '@libsql/linux-x64-gnu' error has been an open issue in libsql-client-ts for 2.5 years with 33 reactions and no documented fix anywhere in the official docs. The fix exists — the /web subpath has no native dependencies — but nobody wrote it down.

Covers:

  • /web subpath for remote databases (zero config, works everywhere)
  • esbuild --alias for when you can't change imports directly
  • CDK Lambda Layer pattern for embedded replicas
  • SST Ion config for both cases
  • Platform quick-reference table

Refs tursodatabase/libsql-client-ts#112

Covers the "Cannot find module @libsql/linux-x64-gnu" error that
occurs when bundling with esbuild for AWS Lambda and other serverless
platforms. Documents the /web subpath fix for remote databases and
the CDK Lambda Layer approach for embedded replicas.

Fixes tursodatabase#112 in libsql-client-ts
Comment thread sdk/ts/guides/serverless.mdx Outdated

</CodeGroup>

### With SST Ion

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The versions of SST backed by Pulumi - 3.0.0 and onwards - are no longer referred to as Ion. From my understanding that was just a pre-release codename.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants