diff --git a/templates/deno-ts/src/main.ts b/templates/deno-ts/src/main.ts index 4a39c74df56..8af4bf3d3e4 100644 --- a/templates/deno-ts/src/main.ts +++ b/templates/deno-ts/src/main.ts @@ -20,7 +20,7 @@ async function main(): Promise { // Build and establish connection DbConnection.builder() .withUri(HOST) - .withModuleName(DB_NAME) + .withDatabaseName(DB_NAME) .withToken(token) .onConnect(onConnect) .onDisconnect(onDisconnect) diff --git a/templates/keynote-2/src/connectors/spacetimedb.ts b/templates/keynote-2/src/connectors/spacetimedb.ts index 83bbd2eec68..8c6c397aa0b 100644 --- a/templates/keynote-2/src/connectors/spacetimedb.ts +++ b/templates/keynote-2/src/connectors/spacetimedb.ts @@ -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'); diff --git a/templates/nextjs-ts/lib/spacetimedb-server.ts b/templates/nextjs-ts/lib/spacetimedb-server.ts index 8d0d0d544fb..28581be0f24 100644 --- a/templates/nextjs-ts/lib/spacetimedb-server.ts +++ b/templates/nextjs-ts/lib/spacetimedb-server.ts @@ -21,7 +21,7 @@ export async function fetchPeople(): Promise { const connection = DbConnection.builder() .withUri(HOST) - .withModuleName(DB_NAME) + .withDatabaseName(DB_NAME) .onConnect(conn => { // Subscribe to all people conn diff --git a/templates/nodejs-ts/src/main.ts b/templates/nodejs-ts/src/main.ts index 89f04e49260..02633fd2c24 100644 --- a/templates/nodejs-ts/src/main.ts +++ b/templates/nodejs-ts/src/main.ts @@ -22,7 +22,7 @@ async function main(): Promise { // Build and establish connection DbConnection.builder() .withUri(HOST) - .withModuleName(DB_NAME) + .withDatabaseName(DB_NAME) .withToken(loadToken()) .onConnect(onConnect) .onDisconnect(onDisconnect) diff --git a/templates/nuxt-ts/nuxt.config.ts b/templates/nuxt-ts/nuxt.config.ts index d9a01aa97b3..e3b0dd601cb 100644 --- a/templates/nuxt-ts/nuxt.config.ts +++ b/templates/nuxt-ts/nuxt.config.ts @@ -1,5 +1,6 @@ export default defineNuxtConfig({ compatibilityDate: '2025-01-01', + telemetry: false, devServer: { port: 5173, }, diff --git a/templates/nuxt-ts/server/api/people.get.ts b/templates/nuxt-ts/server/api/people.get.ts index 24a98b533bf..39c92451394 100644 --- a/templates/nuxt-ts/server/api/people.get.ts +++ b/templates/nuxt-ts/server/api/people.get.ts @@ -14,7 +14,7 @@ export default defineEventHandler(async (): Promise => { DbConnection.builder() .withUri(HOST) - .withModuleName(DB_NAME) + .withDatabaseName(DB_NAME) .onConnect(conn => { conn .subscriptionBuilder() diff --git a/templates/remix-ts/app/lib/spacetimedb.server.ts b/templates/remix-ts/app/lib/spacetimedb.server.ts index 16dd6db55ed..47945b4b2f9 100644 --- a/templates/remix-ts/app/lib/spacetimedb.server.ts +++ b/templates/remix-ts/app/lib/spacetimedb.server.ts @@ -21,7 +21,7 @@ export async function fetchPeople(): Promise { const connection = DbConnection.builder() .withUri(HOST) - .withModuleName(DB_NAME) + .withDatabaseName(DB_NAME) .onConnect(conn => { // Subscribe to all people conn