diff --git a/package-lock.json b/package-lock.json index 89b4034..73bb5a6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7928,22 +7928,6 @@ "dev": true, "license": "ISC" }, - "node_modules/yaml": { - "version": "2.8.2", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.2.tgz", - "integrity": "sha512-mplynKqc1C2hTVYxd0PU2xQAc22TI1vShAYGksCCfxbn/dFwnHTNi1bvYsBTkhdUNtGIf5xNOg938rrSSYvS9A==", - "extraneous": true, - "license": "ISC", - "bin": { - "yaml": "bin.mjs" - }, - "engines": { - "node": ">= 14.6" - }, - "funding": { - "url": "https://github.com/sponsors/eemeli" - } - }, "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", diff --git a/src/lib/server/db/index.ts b/src/lib/server/db/index.ts index fb8b355..eb20c12 100644 --- a/src/lib/server/db/index.ts +++ b/src/lib/server/db/index.ts @@ -3,8 +3,6 @@ import postgres from 'postgres'; import * as schema from './schema'; import { env } from '$env/dynamic/private'; -if (!env.DATABASE_URL) throw new Error('DATABASE_URL is not set'); - const client = postgres(env.DATABASE_URL); export const db = drizzle(client, { schema }); diff --git a/src/routes/(game)/game/play/[sessionCode]/+page.svelte b/src/routes/(game)/game/play/[sessionCode]/+page.svelte index d0a8c46..a8c374a 100644 --- a/src/routes/(game)/game/play/[sessionCode]/+page.svelte +++ b/src/routes/(game)/game/play/[sessionCode]/+page.svelte @@ -369,7 +369,7 @@ {#if locationPermission === 'denied'}
- +
@@ -388,7 +388,7 @@ {:else if locationPermission === 'prompt'}
- + @@ -419,7 +419,7 @@
{:else} -
+

{$t.gameplay.distance}

diff --git a/tsconfig.json b/tsconfig.json index 2c2ed3c..709cb83 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,7 +10,8 @@ "skipLibCheck": true, "sourceMap": true, "strict": true, - "moduleResolution": "bundler" + "moduleResolution": "bundler", + "types": ["node"] } // Path aliases are handled by https://svelte.dev/docs/kit/configuration#alias // except $lib which is handled by https://svelte.dev/docs/kit/configuration#files