From 689f232cbb05a13528ff1ecd3924e5bba0ccafeb Mon Sep 17 00:00:00 2001 From: Maxime Cannoodt Date: Sun, 13 Nov 2022 14:16:28 +0100 Subject: [PATCH] chore: :building_construction: Migrate to SvelteKit 1.0.0 --- proxy.js | 2 +- webapp/package.json | 5 ++--- webapp/src/lib/components/Dismissable.svelte | 2 +- webapp/src/lib/marked/renderers/Code.svelte | 2 +- webapp/src/routes/+layout.svelte | 2 +- webapp/src/routes/note/[id]/+page.server.ts | 6 +++--- webapp/src/routes/note/[id]/+page.svelte | 2 +- webapp/src/routes/note/[id]/+page.ts | 14 -------------- 8 files changed, 10 insertions(+), 25 deletions(-) delete mode 100644 webapp/src/routes/note/[id]/+page.ts diff --git a/proxy.js b/proxy.js index 4b16912..64f4258 100644 --- a/proxy.js +++ b/proxy.js @@ -14,7 +14,7 @@ app.use( app.use( "/", createProxyMiddleware({ - target: "http://localhost:3000", + target: "http://localhost:5173", changeOrigin: true, }) ); diff --git a/webapp/package.json b/webapp/package.json index a743e81..0440eb5 100644 --- a/webapp/package.json +++ b/webapp/package.json @@ -6,9 +6,8 @@ "license": "MIT", "scripts": { "dev": "vite dev", - "build": "svelte-kit build", - "package": "svelte-kit package", - "preview": "svelte-kit preview", + "build": "vite build", + "preview": "vite preview", "check": "svelte-check --tsconfig ./tsconfig.json", "check:watch": "svelte-check --tsconfig ./tsconfig.json --watch", "lint": "prettier --check --plugin-search-dir=. . && eslint .", diff --git a/webapp/src/lib/components/Dismissable.svelte b/webapp/src/lib/components/Dismissable.svelte index 5340802..4101acb 100644 --- a/webapp/src/lib/components/Dismissable.svelte +++ b/webapp/src/lib/components/Dismissable.svelte @@ -1,5 +1,5 @@