📅  最后修改于: 2022-03-11 14:57:38.181000             🧑  作者: Mango
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 element in src/app.html
adapter: staticAdapter(),
target: '#svelte'
}
};
export default config;