From e485b9782b9b078ede42cf1e21fefc94de88fadc Mon Sep 17 00:00:00 2001 From: whoswhip Date: Sat, 10 Oct 2026 20:33:08 -0400 Subject: [PATCH] fix node adapter --- SharpbinV3.Client/eslint.config.js | 4 +--- SharpbinV3.Client/svelte.config.js | 18 ------------------ SharpbinV3.Client/vite.config.ts | 4 +++- 3 files changed, 4 insertions(+), 22 deletions(-) delete mode 100644 SharpbinV3.Client/svelte.config.js diff --git a/SharpbinV3.Client/eslint.config.js b/SharpbinV3.Client/eslint.config.js index 7df665d..cec4df7 100644 --- a/SharpbinV3.Client/eslint.config.js +++ b/SharpbinV3.Client/eslint.config.js @@ -6,7 +6,6 @@ import svelte from 'eslint-plugin-svelte'; import { defineConfig } from 'eslint/config'; import globals from 'globals'; import ts from 'typescript-eslint'; -import svelteConfig from './svelte.config.js'; const gitignorePath = fileURLToPath(new URL('./.gitignore', import.meta.url)); @@ -33,8 +32,7 @@ export default defineConfig( parserOptions: { projectService: true, extraFileExtensions: ['.svelte'], - parser: ts.parser, - svelteConfig + parser: ts.parser } } } diff --git a/SharpbinV3.Client/svelte.config.js b/SharpbinV3.Client/svelte.config.js deleted file mode 100644 index e0a641e..0000000 --- a/SharpbinV3.Client/svelte.config.js +++ /dev/null @@ -1,18 +0,0 @@ -import adapter from '@sveltejs/adapter-node'; -import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; - -/** @type {import('@sveltejs/kit').Config} */ -const config = { - // Consult https://svelte.dev/docs/kit/integrations - // for more information about preprocessors - preprocess: vitePreprocess(), - - kit: { - // adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list. - // If your environment is not supported, or you settled on a specific environment, switch out the adapter. - // See https://svelte.dev/docs/kit/adapters for more information about adapters. - adapter: adapter() - } -}; - -export default config; diff --git a/SharpbinV3.Client/vite.config.ts b/SharpbinV3.Client/vite.config.ts index 05caf61..03f060d 100644 --- a/SharpbinV3.Client/vite.config.ts +++ b/SharpbinV3.Client/vite.config.ts @@ -1,5 +1,7 @@ import tailwindcss from '@tailwindcss/vite'; import { sveltekit } from '@sveltejs/kit/vite'; +import adapter from '@sveltejs/adapter-node'; +import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; import { defineConfig } from 'vite'; import { readFileSync } from 'fs'; import { fileURLToPath } from 'url'; @@ -14,7 +16,7 @@ const allowedHosts = process.env.VITE_ALLOWED_HOSTS : ['localhost']; export default defineConfig({ - plugins: [tailwindcss(), sveltekit()], + plugins: [tailwindcss(), sveltekit({ adapter: adapter(), preprocess: vitePreprocess() })], define: { __APP_VERSION__: JSON.stringify(pkg.version), COMMIT_HASH: JSON.stringify(process.env.GIT_COMMIT_HASH || 'unknown')