Complete the code to specify the build command for Vercel deployment in vercel.json.
{
"builds": [
{ "src": "package.json", "use": "[1]" }
]
}Vercel uses @vercel/static-build to build static sites like Svelte apps.
Complete the netlify.toml to set the build command for Netlify deployment.
[build] command = "[1]" publish = "build"
Netlify needs the build command to generate the production files, which is npm run build.
Fix the error in the Netlify publish directory setting to correctly point to the Svelte build output.
[build] publish = "[1]"
SvelteKit outputs the production files to the build folder by default for Netlify.
Fill both blanks to configure environment variables for Vercel deployment in vercel.json.
{
"env": {
"API_URL": "[1]",
"NODE_ENV": "[2]"
}
}For deployment, API_URL should point to the live API and NODE_ENV should be production.
Fill all three blanks to complete the SvelteKit adapter import and usage for Netlify deployment in svelte.config.js.
import adapter from '@sveltejs/adapter-netlify'; export default { kit: { adapter: adapter({ [1]: true, [2]: true, [3]: 10 }) } };
The adapter options include split: true to split functions, edge: true to specify edge functions, and timeout: 10 seconds.