# Deploy a static website on PRNext Host

A static site serves generated HTML, CSS, JavaScript and other browser assets. It does not need a Node process to render each request. PRNext Host can deploy these files, including browser bundles produced by tools such as Vite.

This guide follows a small site from its source to a checked public URL. You can use the dashboard or a connected MCP assistant. Both use the same project settings and deployment checks. A static build is different from a Next.js application that needs server rendering, private server code or a database connection.

## Identify the files to publish

For a plain site, start with an index.html and its local assets. The example below is enough to check the basic publication path. Keep source files in a directory you understand; do not include passwords, private environment files, dependency folders or unrelated projects.

Choose the folder that will actually contain the finished index.html. This might be dist after a build. A repository root containing source components is not automatically a finished website, and renaming that folder does not compile the application.

```html
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>My first static site</title>
</head>
<body><main><h1>Hello from my website</h1></main></body>
</html>
```

## Set up the project

Sign in to PRNext Host, select your workspace and create a project for the source you intend to publish. Select the static build adapter when the output consists entirely of browser files. Configure its build command and a safe relative output directory to match the repository.

For files that are already built, use the static settings offered by the dashboard rather than inventing a build command. For a GitHub source, confirm the repository, branch and source revision. With MCP, ask the assistant to explain the chosen adapter and output folder before deploying.

## Build a Vite browser application

A conventional Vite project produces browser output in dist with its build script. Reproduce the build locally with the project’s package manager and lockfile. Inspect the resulting index.html and asset paths. Use that actual output directory in Host. Vite preview is a local preview command, not the production server you should leave running.

```sh
npm ci
npm run build
```

## Deploy and inspect the result

Upload the intended source through the supported Host workflow or deploy the configured repository. A small authorized source can also be sent by a connected assistant. If the source exceeds its upload limits, use the larger-source flow offered by Host rather than pasting dependencies into the conversation.

Wait for the final deployment result, inspect errors or build logs if it fails, then open the returned URL. Check the page content, CSS, JavaScript, images and one missing file. An assistant should report a failed or pending deployment accurately instead of treating a queued build as a live website.

## Check navigation and domains

A browser router may need the explicit SPA fallback setting so a direct visit to an application route returns index.html. An ordinary multipage site should keep its real HTML routes. A missing JavaScript or image file must still fail rather than silently return the homepage.

Check direct navigation, reloads and asset URLs before attaching your own domain. Follow the project’s domain and DNS instructions, then verify HTTPS on the final hostname. Retain the known source revision and build settings so you can redeploy that version if a later change fails.

## Understand the hosting boundary and cost

A static export does not provide an application server, server-only environment variables or a database API. Those features need a supported server application or a separate service. For a PRNext or Next.js project, check compatibility and its actual deployment mode rather than selecting Static only to get past a failed build.

PRNext Host has a minimum of €2.40 per month per workspace, including €2.40 of metered usage. Additional usage is billed separately. Check the current rates and access conditions in the dashboard. Publishing a public file makes its contents readable to visitors; keep private credentials out of browser assets.

[Connect your coding assistant](/blog/connect-ai-assistant-prnext-host-mcp)

[Check PRNext compatibility](/blog/prnext-nextjs-compatibility-migration)

## Sources

[PRNext Host](https://host.prnext.dev/)

[PRNext Host dashboard](https://app.prnext.dev/)

[Vite: static deployment](https://vite.dev/guide/static-deploy.html)

[Next.js: static exports](https://nextjs.org/docs/app/guides/static-exports)

Published: 2026-11-14

Modified: 2026-11-17

Author: PRNext

---

Language: en

Canonical: https://prnext.dev/blog/deploy-static-website-prnext-host

Index: https://prnext.dev/llms.txt
