Appearance
Deploy to Netlify
Netlify offers the simplest possible deploy: drag a folder into the browser.
Option A: drag and drop (no Git needed)
Build the site on your computer:
bashnpm install npm run buildSign in at app.netlify.com.
Go to Sites (or Projects) → Add new site → Deploy manually, or open app.netlify.com/drop.
Drag the
distfolder (the folder itself, from your file manager) onto the drop area.Netlify uploads it and gives you a URL like
https://lucky-otter-123.netlify.app. Rename it under Site configuration → Change site name.
To publish changes, run npm run build again and drag the new dist folder onto Deploys in your site.
Option B: from your Git repo (automatic deploys)
You need your site in your own private repo first (how).
Add new site → Import an existing project → choose GitHub (or GitLab / Bitbucket) and pick your repo.
Check the build settings:
Setting Value Build command npm run buildPublish directory distClick Deploy. Every push to
mainnow redeploys the site.
Node.js version
Netlify reads the project's .nvmrc (22) automatically. To be explicit, add an environment variable NODE_VERSION = 22 under Site configuration → Environment variables, or add a netlify.toml to the project root:
toml
[build]
command = "npm run build"
publish = "dist"
[build.environment]
NODE_VERSION = "22"Option C: Netlify CLI
bash
npx netlify-cli login
npm run build
npx netlify-cli deploy --dir=dist # draft URL to check
npx netlify-cli deploy --dir=dist --prod # publishForms on Netlify
Netlify can receive form submissions without any backend. Follow Netlify's "Forms setup for JavaScript-rendered forms" guide: it asks you to add a hidden copy of the form to index.html and a name plus data-netlify="true" on the form. The template's form components are in src/components/sections/.
Custom domain
Domain management → Add a domain. Netlify shows the DNS records to create and issues a free HTTPS certificate. See Custom domains & HTTPS.