Deploy to Netlify
About 327 wordsAbout 1 min
2026-08-31
Netlify is an established static hosting platform offering Git-based continuous deployment, free SSL certificates, and automated deploy previews for pull requests.
Prerequisites
- Code hosted on GitHub, GitLab, Bitbucket, or Azure DevOps
siteconfigured insrc/config/siteConfig.tswith your official domain
Method 1: Netlify Dashboard
Log in to the Netlify App and click Add a new site → Import an existing project.
Select your Git provider, authorize Netlify, and select your Shirone repository.
Confirm build settings:
Setting Value Build command pnpm buildPublish directory distUnder Environment variables, add
NODE_VERSION = 22.Click Deploy to start the initial build.
Method 2: netlify.toml Configuration
Create a netlify.toml file in your repository root to version-control build configurations:
[build]
command = "pnpm build"
publish = "dist"
[build.environment]
NODE_VERSION = "22"Commit and push this file; Netlify will automatically detect and apply the configuration.
Method 3: Netlify CLI
pnpm add -g netlify-cli
netlify login # Authenticate via browser
netlify init # Link Git repo and generate configuration
netlify deploy --build --prod # Build and deploy to productionPreview Deployments
Every push to non-production branches and every pull request generates an isolated deploy preview URL (<branch>--<site-name>.netlify.app), allowing you to review article rendering before merging to main.
Custom Domains
- Navigate to Site settings → Domain management → Add a domain and enter your domain name.
- Configure DNS records according to the instructions (Netlify DNS or external CNAME).
- SSL certificates are automatically provisioned and renewed via Let's Encrypt.
Troubleshooting
Build Failure: Package Manager Mismatch
Ensure NODE_VERSION = 22 is defined in environment variables. If necessary, update the build command to explicitly enable corepack: corepack enable && pnpm build.
Artifact Size Limits
Netlify limits deployments to 10,000 files. Shirone performs font subsetting and thumbnail compression automatically. If file count remains high, check public/ for unoptimized raw assets.
Copyright
Copyright Ownership:matsuzaka-yuki
License under:Attribution 4.0 International (CC-BY-4.0)