From a17aa820d842af42dc7b56483492759081164d4e Mon Sep 17 00:00:00 2001 From: Anata Arisa Date: Tue, 7 Nov 2023 20:19:48 +0700 Subject: [PATCH] vinh/add config for svelte kit --- frontend/my-app/svelte.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/my-app/svelte.config.js b/frontend/my-app/svelte.config.js index 87f1a415..84ddb3e4 100644 --- a/frontend/my-app/svelte.config.js +++ b/frontend/my-app/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} */ @@ -7,6 +7,9 @@ const config = { // for more information about preprocessors preprocess: [vitePreprocess({})], kit: { + env: { + dir: "./", + }, // 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.