Vorynza
Vorynza
DashboardPricingDocumentation
Host overviewDeploying Next.jsDeploying ViteEnvironment variablesCustom domainsDeploymentsLogs
Host

Deploying Vite

Deploy a static Vite app to Vorynza Host.

Vite apps deploy as static output — Vorynza builds your app once per deployment and serves the result directly from a CDN. There's no server process, so there's nothing to cold-start and nothing to patch.

How it's detected

Vorynza detects Vite from a vite.config.(js|ts|mjs|cjs) file at your repo root, or a vite dependency in package.json. It sets:

SettingValue
Output directorydist
Install commandnpm install (or your detected package manager's equivalent)
Build commandnpm run build
RuntimeStatic

If your project builds somewhere other than dist, or uses a custom build script, override it from Settings → Git & build on your app.

What happens on deploy

  1. Vorynza clones your repo and runs your install/build commands in an isolated build environment.
  2. The contents of your output directory are uploaded as-is and served from a CDN.
  3. Your app gets a *.vorynza.cloud subdomain immediately — see Custom domains to bring your own.

Because there's no server, requests are served entirely from the CDN edge, and there's no function log stream — only build logs apply to static apps.

Environment variables

Vite only exposes variables prefixed VITE_ to your client code, and — like any static build — they're inlined at build time via import.meta.env. Set them before triggering a deployment; changing a VITE_* variable requires a new deployment to take effect. See Environment variables for how to set and scope them.

const apiUrl = import.meta.env.VITE_API_URL;

Client-side routing

If your app uses a client-side router (React Router, TanStack Router, etc.), unknown paths need to fall back to index.html so deep links and refreshes work. This is handled automatically for static deployments.

Deploying Next.js

Deploy a server-rendered Next.js app to Vorynza Host.

Environment variables

Set, scope, import, and export environment variables for your Host app.

On this page

How it's detectedWhat happens on deployEnvironment variablesClient-side routing