Deploy Svelte with ZEIT Now

Create a Svelte app and deploy it live with ZEIT Now.

Svelte is a radically new approach to building user interfaces.

Step 1: Set Up Your Svelte Project

Set up a Svelte app with npx and move into the project directory:

npx degit sveltejs/template my-svelte-project && cd my-svelte-project

Initializing a Svelte app with npx and moving into the project directory.

Step 2: Deploying Your Svelte App with ZEIT Now

There are two ways to deploy with ZEIT Now. We recommend using a ZEIT Now for Git Integration for ease-of-use. Alternatively, Now CLI can be used to generate a manual Preview Deployment.

Once deployed, you will get a URL to see your app live, such as the following: https://svelte.now-examples.now.sh


To deploy your Svelte app with a ZEIT Now for Git Integration, make sure your created project has been pushed to a Git repository.

Import the project into ZEIT Now using your Git integration of choice:

After your project has been imported, all subsequent pushes to branches will generate Preview Deployments, and all changes made to the default branch (commonly "master") will result in a Production Deployment.

Set up a Svelte app with a few clicks using the Deploy button, and create a Git repository for it in the process for automatic deployments for your updates.



Written By
Written by msweeneydevmsweeneydev