Open
Conversation
clockwork-tien
approved these changes
Feb 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Changes
Fix
withModuleName->withDatabaseNamein server-side code across multiple TypeScript templates. The 2.0 SDK renamed this method, but several templates still used the old 1.x API name, causing a runtime error (DbConnection.builder(...).withUri(...).withModuleName is not a function).Files changed:
templates/nuxt-ts/server/api/people.get.tstemplates/remix-ts/app/lib/spacetimedb.server.tstemplates/nextjs-ts/lib/spacetimedb-server.tstemplates/nodejs-ts/src/main.tstemplates/deno-ts/src/main.tstemplates/keynote-2/src/connectors/spacetimedb.tsAPI and ABI breaking changes
None. This aligns templates with the existing 2.0 SDK API.
Expected complexity level and risk
1 — Trivial string replacement across template files. No logic changes.
Testing
spacetime dev --template nuxt-tsand verify the Nuxt SSR server API (/api/people) connects withoutwithModuleName is not a functionerrorspacetime dev --template nextjs-tsand verify the server-side SpacetimeDB connection worksspacetime dev --template remix-tsand verify the server-side SpacetimeDB connection works