From bafff0bed82e570c96bb49ce3d77be45de099230 Mon Sep 17 00:00:00 2001 From: philipp Date: Tue, 20 Jun 2023 00:03:02 +0200 Subject: [PATCH] remove node --- rot_app/package-lock.json | 17 ++++++++++++++++- rot_app/package.json | 3 +-- rot_app/svelte.config.js | 6 ++++-- 3 files changed, 21 insertions(+), 5 deletions(-) diff --git a/rot_app/package-lock.json b/rot_app/package-lock.json index 031b786..cb7fa07 100644 --- a/rot_app/package-lock.json +++ b/rot_app/package-lock.json @@ -8,7 +8,8 @@ "name": "rot-app", "version": "0.0.1", "dependencies": { - "@sveltejs/adapter-node": "^1.2.4" + "@sveltejs/adapter-node": "^1.2.4", + "@sveltejs/adapter-static": "^2.0.2" }, "devDependencies": { "@fontsource/fira-mono": "^4.5.10", @@ -752,6 +753,14 @@ "@sveltejs/kit": "^1.0.0" } }, + "node_modules/@sveltejs/adapter-static": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@sveltejs/adapter-static/-/adapter-static-2.0.2.tgz", + "integrity": "sha512-9wYtf6s6ew7DHUHMrt55YpD1FgV7oWql2IGsW5BXquLxqcY9vjrqCFo0TzzDpo+ZPZkW/v77k0eOP6tsAb8HmQ==", + "peerDependencies": { + "@sveltejs/kit": "^1.5.0" + } + }, "node_modules/@sveltejs/kit": { "version": "1.20.2", "resolved": "https://registry.npmjs.org/@sveltejs/kit/-/kit-1.20.2.tgz", @@ -4410,6 +4419,12 @@ "rollup": "^3.7.0" } }, + "@sveltejs/adapter-static": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@sveltejs/adapter-static/-/adapter-static-2.0.2.tgz", + "integrity": "sha512-9wYtf6s6ew7DHUHMrt55YpD1FgV7oWql2IGsW5BXquLxqcY9vjrqCFo0TzzDpo+ZPZkW/v77k0eOP6tsAb8HmQ==", + "requires": {} + }, "@sveltejs/kit": { "version": "1.20.2", "resolved": "https://registry.npmjs.org/@sveltejs/kit/-/kit-1.20.2.tgz", diff --git a/rot_app/package.json b/rot_app/package.json index b5d844e..bcaf9bd 100644 --- a/rot_app/package.json +++ b/rot_app/package.json @@ -16,7 +16,6 @@ "@fontsource/fira-mono": "^4.5.10", "@neoconfetti/svelte": "^1.0.0", "@playwright/test": "^1.28.1", - "@sveltejs/adapter-auto": "^2.0.0", "@sveltejs/kit": "^1.5.0", "@types/cookie": "^0.5.1", "@typescript-eslint/eslint-plugin": "^5.45.0", @@ -38,6 +37,6 @@ }, "type": "module", "dependencies": { - "@sveltejs/adapter-node": "^1.2.4" + "@sveltejs/adapter-static": "^2.0.2" } } diff --git a/rot_app/svelte.config.js b/rot_app/svelte.config.js index 2214c60..feabc04 100644 --- a/rot_app/svelte.config.js +++ b/rot_app/svelte.config.js @@ -1,4 +1,4 @@ -import adapter from '@sveltejs/adapter-node'; +import adapter from '@sveltejs/adapter-static'; import { vitePreprocess } from '@sveltejs/kit/vite'; /** @type {import('@sveltejs/kit').Config} */ @@ -11,7 +11,9 @@ const config = { // adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list. // If your environment is not supported or you settled on a specific environment, switch out the adapter. // See https://kit.svelte.dev/docs/adapters for more information about adapters. - adapter: adapter() + adapter: adapter({ + fallback: 'app.html', + }) } };