Build and preview your Svelte project
mainTo prepare your application for production, run the build script. Once the build is complete, you can use the preview script to run a local server that serves the production build for testing.
# Create a production version of your app
npm run build
# Preview the production build
npm run preview