Skip to content

Commit

Permalink
chore: configure static website adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
mahyarmirrashed committed Dec 3, 2024
1 parent 30e816a commit 08d8798
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions 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-static";
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";

/** @type {import('@sveltejs/kit').Config} */
Expand All @@ -11,7 +11,11 @@ const config = {
// 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(),
adapter: adapter({
pages: "build",
assets: "build",
fallback: "index.html",
}),
},
};

Expand Down

0 comments on commit 08d8798

Please sign in to comment.