Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/deno-ts/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async function main(): Promise<void> {
// Build and establish connection
DbConnection.builder()
.withUri(HOST)
.withModuleName(DB_NAME)
.withDatabaseName(DB_NAME)
.withToken(token)
.onConnect(onConnect)
.onDisconnect(onDisconnect)
Expand Down
2 changes: 1 addition & 1 deletion templates/keynote-2/src/connectors/spacetimedb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function spacetimedb(

const builder = Db.builder()
.withUri(url)
.withModuleName(moduleName)
.withDatabaseName(moduleName)
.withConfirmedReads(process.env.STDB_CONFIRMED_READS === '1')
.onConnect((ctx) => {
console.log('[stdb] connected');
Expand Down
2 changes: 1 addition & 1 deletion templates/nextjs-ts/lib/spacetimedb-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export async function fetchPeople(): Promise<PersonData[]> {

const connection = DbConnection.builder()
.withUri(HOST)
.withModuleName(DB_NAME)
.withDatabaseName(DB_NAME)
.onConnect(conn => {
// Subscribe to all people
conn
Expand Down
2 changes: 1 addition & 1 deletion templates/nodejs-ts/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async function main(): Promise<void> {
// Build and establish connection
DbConnection.builder()
.withUri(HOST)
.withModuleName(DB_NAME)
.withDatabaseName(DB_NAME)
.withToken(loadToken())
.onConnect(onConnect)
.onDisconnect(onDisconnect)
Expand Down
1 change: 1 addition & 0 deletions templates/nuxt-ts/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export default defineNuxtConfig({
compatibilityDate: '2025-01-01',
telemetry: false,
devServer: {
port: 5173,
},
Expand Down
2 changes: 1 addition & 1 deletion templates/nuxt-ts/server/api/people.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default defineEventHandler(async (): Promise<PersonData[]> => {

DbConnection.builder()
.withUri(HOST)
.withModuleName(DB_NAME)
.withDatabaseName(DB_NAME)
.onConnect(conn => {
conn
.subscriptionBuilder()
Expand Down
2 changes: 1 addition & 1 deletion templates/remix-ts/app/lib/spacetimedb.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export async function fetchPeople(): Promise<PersonData[]> {

const connection = DbConnection.builder()
.withUri(HOST)
.withModuleName(DB_NAME)
.withDatabaseName(DB_NAME)
.onConnect(conn => {
// Subscribe to all people
conn
Expand Down
Loading