Answers for "adapter static sveltekit"

2

svelte static adapter

npm i -D @sveltejs/adapter-static@next

then make svelte.config.js look like this:

/** @type {import('@sveltejs/kit').Config} */

import staticAdapter from '@sveltejs/adapter-static'

const config = {
	kit: {
		// hydrate the <div id="svelte"> element in src/app.html
		adapter: staticAdapter(),
		target: '#svelte'
	}
};

export default config;
Posted by: Guest on June-12-2021

Browse Popular Code Answers by Language