Documentation
Deployment guide
This guide walks through the fastest way to publish a static site, configure a custom domain, and prepare common frontend frameworks for DeployPages.
Quick start
Deployment means uploading your local site files so anyone can open them with a URL. DeployPages removes the usual server and DNS setup overhead.
Option 1: Drag-and-drop deployment
The fastest path for static projects. No CLI, no build server, and no extra tooling required if the site is already plain HTML, CSS, and JavaScript.
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. - 2Sign in to DeployPages
Open the site, sign in, and go to the main upload area for your workspace.
- 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 for developers who want repeatable deployments in scripts or CI.
Preview only
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.