Complete the code to import the static adapter in SvelteKit.
import adapter from '@sveltejs/adapter-[1]';
The static adapter is imported from '@sveltejs/adapter-static' to enable static site generation.
Complete the adapter configuration in svelte.config.js for static deployment.
export default {
kit: {
adapter: adapter({ [1]: 'build' })
}
};The 'pages' option specifies the output folder for the static files, commonly set to 'build'.
Fix the error in the build script to deploy a static site.
"scripts": { "build": "svelte-kit [1]" }
The correct build command is 'svelte-kit build' to generate the static site files.
Fill both blanks to configure the static adapter with custom folders.
adapter: adapter({
[1]: 'public',
[2]: 'assets'
})'pages' sets the folder for HTML pages, 'assets' sets the folder for static assets.
Fill all three blanks to complete the svelte.config.js static adapter setup.
import adapter from '@sveltejs/adapter-[1]'; export default { kit: { adapter: adapter({ [2]: 'build', [3]: 'static' }) } };
Import the 'static' adapter, then configure 'pages' and 'assets' folders for output.