Connect the repository.
Import it from GitHub or GitLab, or deploy a local folder with the Lahyer CLI.
React hosting
Deploy a React app built with Vite or Create React App. Lahyer runs your build, serves the files from a global edge with HTTPS and sends unknown paths to index.html, so client-side routing keeps working.
Deploy your projectWhat Lahyer does with it
Lahyer fills these in from your repository. Change anything that does not fit in the project's build settings.
| Detected from | vite or react-scripts in your package.json dependencies |
|---|---|
| Install | npm, pnpm, Yarn or Bun, chosen from your packageManager field or lockfile |
| Build | Your build script, or vite build or react-scripts build |
| Output | dist/ for Vite, build/ for Create React App |
| Routing | Paths without a file fall back to index.html for React Router and similar |
Your first deploy
Import it from GitHub or GitLab, or deploy a local folder with the Lahyer CLI.
Vite reads VITE_ variables while it builds, and Lahyer passes your environment variables to the build. Anything in browser code is public, so keep secrets out of it.
Every push deploys to your live URL, and every pull request gets a preview to review before you merge.
A few useful answers
Yes. For Vite and Create React App builds, a path with no matching file serves index.html, so React Router and similar routers take over.
Yes. Lahyer builds any Vite project as static files from dist/. SvelteKit, Nuxt and Astro have their own guides.
No. Static files are served without a running server, so there is no cold start on any plan.
Yes. Studio's website template builds a Vite + React app from a description. Publish it on Lahyer or export the code to GitHub or GitLab.