Skip to content

Commit

Permalink
vinh/add config for svelte kit
Browse files Browse the repository at this point in the history
  • Loading branch information
AnataAria committed Nov 7, 2023
1 parent 1f0e4bf commit a17aa82
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/my-app/svelte.config.js
Original file line number Diff line number Diff line change
@@ -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} */
Expand All @@ -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.
Expand Down

0 comments on commit a17aa82

Please sign in to comment.