You deploy a Svelte app to Vercel but forget to add a build script in package.json. What will Vercel do?
Think about what Vercel needs to build your app.
Vercel requires a build script to know how to build your app. Without it, the deployment fails.
netlify.toml config correctly sets the build command for a SvelteKit app?Choose the correct netlify.toml snippet to build a SvelteKit app on Netlify.
Where does SvelteKit output the built files by default?
With @sveltejs/adapter-netlify, SvelteKit outputs the built files to the .svelte-kit/output directory. The publish directory must point there.
You deployed your Svelte app to Netlify, but the page is blank with no errors. What is the most likely cause?
Check where your built files are and what Netlify serves.
If the publish directory is wrong, Netlify serves an empty folder, causing a blank page.
When deploying a SvelteKit app with serverless functions to Vercel, how are these functions managed?
Think about how Vercel treats API routes.
Vercel detects serverless functions in specific folders and deploys them as endpoints automatically.
You set environment variables in Netlify's dashboard for your SvelteKit app. How do these variables affect the deployed app's behavior?
Consider build time vs runtime and client vs server code.
Netlify environment variables are available during build. To use them in client code, you must prefix them with PUBLIC_ and expose them explicitly.