Jay's Dev Diary 🔖

Using Netlify to host a publish website

  • Include swift version in a .swift-version file
  • Run command for netlify is swift run

Small how-to

  1. Create a website using Publish
  2. Create or add to a github or any other git remote repo
  3. Go to netlify and configure a new Netlify prolect with the repo from step 2
  4. When configuring the project to build on Netlify:
    1. The build command is swift run
    2. The Publish diretcory is Output
Tagged with: