From 74ce889071406cbd69c7e61d3531a424fc3a3380 Mon Sep 17 00:00:00 2001 From: waltem01 Date: Fri, 1 Dec 2023 08:14:08 +0100 Subject: [PATCH] node as build config --- Webserver/svelte.config.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Webserver/svelte.config.js b/Webserver/svelte.config.js index 1cf26a0..d688f7c 100644 --- a/Webserver/svelte.config.js +++ b/Webserver/svelte.config.js @@ -1,4 +1,4 @@ -import adapter from '@sveltejs/adapter-auto'; +import adapter from '@sveltejs/adapter-node'; import { vitePreprocess } from '@sveltejs/kit/vite'; /** @type {import('@sveltejs/kit').Config} */ @@ -8,8 +8,7 @@ const config = { preprocess: vitePreprocess(), kit: { - // 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. + // adapter-node uses adapter() method here; production env will always run with node. // See https://kit.svelte.dev/docs/adapters for more information about adapters. adapter: adapter() }