Skip to content

Deploy to Netlify

How to add a new site to Netlify for any project/mode combination.

Prerequisites

  • Netlify account with access to the team
  • GitHub repo connected to Netlify
  • Project builds locally (yarn build or yarn docs:build)

Site Naming Convention

Sites follow the pattern: {project} or {project}-docs

ProjectModeNetlify Site Name
wsdevwebseriously
wsdocswebseriously-docs
didevdi
didocsdi-docs
shareddocsshared-docs

Steps to Add a New Site

1. Create the Site in Netlify

  1. Log in to Netlify
  2. Click Add new siteImport an existing project
  3. Select GitHub
  4. Choose the repository (e.g., gizmolab10/di)
  5. Configure build settings (leave base directory blank):
ProjectModeBuild commandPublish directoryDone
wsdevyarn builddistyes
wsdocsyarn docs:buildnotes/docs/.vitepress/distyes
didevyarn builddistno
didocsyarn docs:buildnotes/docs/.vitepress/distno
shareddocsyarn docs:buildnotes/docs/.vitepress/distno
  1. Click Deploy

2. Rename the Site

Netlify assigns a random name. Change it:

  1. Go to Site settingsGeneralSite details
  2. Click Change site name
  3. Enter the name from the naming convention above
  4. Save

3. Get the Site ID

  1. Go to Site settingsGeneralSite details
  2. Copy the Site ID (a UUID like 0770f16d-e009-48e8-a548-38a5bb2c18f5)
  3. Add to project's notes/tools/config.sh:
    bash
    NETLIFY_SITE_ID="your-site-id-here"

4. Update dev-hub.html Config

Add URLs to the config in dev-hub.html:

javascript
di: {
  port: 5174,
  site: 'di',
  public: 'https://di.netlify.app',  // ← add this
  repo: 'https://github.com/gizmolab10/di',
  deploy: 'https://app.netlify.com/sites/di/deploys',
  dns: 'https://app.netlify.com/sites/di/settings/domain',
  bubble: null
}

5. Verify Deployment

  1. Push a change to the repo
  2. Check Netlify dashboard for build status
  3. Visit the public URL to confirm it works
  4. Test the Public button in dev-hub.html

Troubleshooting

Build fails

  • Check build command matches what works locally
  • Verify publish directory path is correct
  • Check Netlify build logs for specific errors

Site not updating

  • Confirm the branch is set correctly (usually main)
  • Check if auto-publishing is enabled in Site settingsBuild & deploy

Custom domain

See Site settingsDomain management to add a custom domain.

Current Deployments

SiteStatusURL
webseriouslyhttps://webseriously.netlify.app
webseriously-docshttps://webseriously-docs.netlify.app
di(not deployed)
di-docs(not deployed)
shared-docs(not deployed)