Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 844 Bytes

10-configuration.md

File metadata and controls

42 lines (29 loc) · 844 Bytes

Конфигурация


Your project's configuration lives in a svelte.config.js file at the root of your project. As well as SvelteKit, this config object is used by other tooling that integrates with Svelte such as editor extensions.

/// file: svelte.config.js
// @filename: ambient.d.ts
declare module '@sveltejs/adapter-auto' {
	const plugin: () => import('@sveltejs/kit').Adapter;
	export default plugin;
}

// @filename: index.js
// ---cut---
import adapter from '@sveltejs/adapter-auto';

/** @type {import('@sveltejs/kit').Config} */
const config = {
	kit: {
		adapter: adapter()
	}
};

export default config;

TYPES: @sveltejs/kit#Config

The kit property configures SvelteKit, and can have the following properties:

EXPANDED_TYPES: @sveltejs/kit#KitConfig

csp

env

outDir

paths

prerender