-
Notifications
You must be signed in to change notification settings - Fork 0
/
svelte.config.js
47 lines (42 loc) · 1.5 KB
/
svelte.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// preprocessor
// import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
import { default as sveltePreprocess } from "svelte-preprocess";
export { sveltePreprocess };
// adapter
// import adapter from '@sveltejs/adapter-auto';
import { default as adapterVercel } from "@sveltejs/adapter-vercel";
export { adapterVercel };
// svelte aliases
export const aliasList = {
$assets: "./src/lib/assets",
$atoms: "./src/lib/components/atoms",
$collections: "./src/lib/collections",
$components: "./src/lib/components",
$data: "./src/lib/data",
$logic: "./src/lib/logic",
$molecules: "./src/lib/components/molecules",
$organisms: "./src/lib/components/organisms",
$templates: "./src/lib/components/templates",
$pages: "./src/lib/components/pages",
$queries: "./src/lib/queries",
$routes: "./src/routes",
$settings: "./src/lib/settings",
$stores: "./src/lib/stores",
$tools: "./src/lib/components/tools",
$types: "./src/lib/types",
$utils: "./src/lib/utils",
$wc: "./src/lib/components/wc",
};
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: sveltePreprocess(),
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.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapterVercel(),
alias: aliasList,
prerender: { handleHttpError: "warn" },
},
};
export default config;