From 8eb215f15e55988cb99a18c3504ca970921449d1 Mon Sep 17 00:00:00 2001 From: Matias Hernandez Date: Wed, 10 Jan 2024 12:11:27 -0300 Subject: [PATCH] migrate docs to sveltekit-2 --- docs/package.json | 9 +++++---- docs/src/routes/api/sign-cloudinary-params/+server.ts | 2 +- docs/svelte.config.js | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/package.json b/docs/package.json index d30d7c26..7f8d6c51 100644 --- a/docs/package.json +++ b/docs/package.json @@ -12,8 +12,9 @@ "format": "prettier --plugin-search-dir . --write ." }, "devDependencies": { - "@sveltejs/adapter-auto": "^2.1.0", - "@sveltejs/kit": "^1.20.4", + "@sveltejs/adapter-auto": "^3.0.0", + "@sveltejs/kit": "^2.0.0", + "@sveltejs/vite-plugin-svelte": "^3.0.0", "@tailwindcss/nesting": "0.0.0-insiders.565cd3e", "@tailwindcss/typography": "^0.5.9", "@typescript-eslint/eslint-plugin": "^5.60.0", @@ -36,14 +37,14 @@ "tailwindcss": "^3.3.1", "tslib": "^2.5.3", "typescript": "^5.1.3", - "vite": "^4.3.9" + "vite": "^5.0.0" }, "type": "module", "dependencies": { "@iconify/svelte": "3.1.4", "@microflash/rehype-toc": "1.0.2", "@sentry/sveltekit": "7.64.0", - "@sveltejs/adapter-vercel": "3.0.2", + "@sveltejs/adapter-vercel": "^4.0.0", "@vercel/analytics": "1.0.1", "cloudinary": "^1.32.0", "flowbite-svelte": "0.44.20", diff --git a/docs/src/routes/api/sign-cloudinary-params/+server.ts b/docs/src/routes/api/sign-cloudinary-params/+server.ts index 32a30e08..8d2b9565 100644 --- a/docs/src/routes/api/sign-cloudinary-params/+server.ts +++ b/docs/src/routes/api/sign-cloudinary-params/+server.ts @@ -14,7 +14,7 @@ export const POST = (async ({ request }) => { return json({ signature }) } catch (e) { console.error(e) - throw error(500, (e as Error).message) + error(500, (e as Error).message); } }) satisfies RequestHandler; diff --git a/docs/svelte.config.js b/docs/svelte.config.js index 3001def8..2ebc76db 100644 --- a/docs/svelte.config.js +++ b/docs/svelte.config.js @@ -2,7 +2,7 @@ import { mdsvex } from 'mdsvex'; import mdsvexConfig from './mdsvex.config.js'; import preprocess from 'svelte-preprocess'; import adapter from '@sveltejs/adapter-vercel'; -import { vitePreprocess } from '@sveltejs/kit/vite'; +import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; import { sass } from 'svelte-preprocess-sass'; /** @type {import('@sveltejs/kit').Config} */