Documentation
Deployment guide
A practical guide to publishing static sites, preparing framework builds, connecting domains, and updating projects on DeployPages.
Quick start
Deployment means turning local site files into a URL people can open. DeployPages is built for static output, so the first publish can start with a folder instead of a server setup.
Option 1: Drag-and-drop deployment
The fastest path for static projects. If the site is already HTML, CSS, JavaScript, or a finished build folder, you can upload it directly.
Good fit for
- 1Prepare the project folder
Your deployable folder should include an index.html file at the root plus any styles, scripts, or image assets the page depends on.
Example folder structuremy-site/├── index.html├── styles.css├── script.js└── images/ ├── logo.png └── hero.jpgCommon mistake
If index.html is missing or buried inside a subfolder, the site will not resolve correctly after upload. - 2Open the upload area
Use the upload area on DeployPages. You can publish a temporary project first, then sign in later if you want to keep it.
- 3Upload the folder
Drag the full folder into the upload area or choose it from the file picker. For frameworks, upload the build output folder rather than the source tree.
- 4Open the generated URL
When the upload completes, DeployPages returns a live URL that you can use immediately for testing or sharing.
Option 2: CLI workflow
Useful when the same build ships repeatedly and deployment belongs in a script, CI job, or release checklist.
Use this when the project has become repeatable
Install the CLI
Use your package manager of choice to install the CLI globally.
npm install -g @deploypages/cliAuthenticate
Run the login command and complete the browser-based authorization step.
deploypages loginDeploy the current folder
Run the deploy command from the build output directory.
deploypages deployFramework build guide
Modern frameworks need a build step before upload. The goal is always the same: generate plain static files that the browser can open directly.
What “build” means
React / Vue / Vite
npm run buildUpload the dist folder itself, not the project root.
Next.js static export
npm run buildSet output: 'export' in next.config.js before building.
Plain HTML
No build step requiredJust keep index.html at the root.
Hugo / Hexo
hugo or hexo generateUpload the generated public folder.
Next.js export example
/** @type {import('next').NextConfig} */const nextConfig = { output: 'export', images: { unoptimized: true },};
module.exports = nextConfig;Static export limits
Custom domains
DeployPages can attach your own domain after the first deployment so the project can move from a system URL to a branded production address.
What counts as a domain?
Step 1: Add the domain in the console
Go to project settings, open the domains tab, and add the hostname you want to connect.
Step 2: Configure DNS
DeployPages will provide the DNS targets you need for ownership verification and traffic routing.
Step 3: Wait for verification
When DNS has propagated, the domain status turns healthy and HTTPS provisioning can complete.
| Type | Host | Value | Purpose |
|---|---|---|---|
| CNAME | www | cname.deploypages.site | Point traffic to the platform |
| TXT | _deploypages-challenge | deploypages-verify=... | Verify domain ownership |
Choosing the host record
- Use www when connecting www.example.com.
- Use @ when connecting the root domain example.com.
- Use a subdomain label such as blog when connecting blog.example.com.
Updating a site
Same workflow, new version
- 1Edit the source files
Change copy, styles, media, or assets locally.
- 2Rebuild when needed
If the project uses a framework, generate a fresh build output directory first.
- 3Open the project console
Go back to the project page in DeployPages.
- 4Upload the new version
Replace the previous build with the latest folder. Deployment history keeps the newer release traceable.
Once the upload completes, the new build becomes live and the previous versions remain available for rollback.