Your Vue project. Live on the web.
Send code from Git or a local folder. Layero builds and publishes your Vue application, with Vue Router, Pinia and your API.
npm run buildWhat Layero does for your Vue project
Vue + Vite
Components, styles and images build into static files. A standard Vite project outputs them to dist.
Dashboards and SPAs
Vue Router handles navigation and Pinia manages application state. When using history mode, check direct access to nested URLs and configure an SPA fallback.
Data from an API
Connect your frontend to your API or Layero Data API. Keep server secrets out of client bundles: VITE_* variables are visible to site visitors.
Updates through Git
Connect a repository and publish updates from your usual workflow. Builds and their results are available in the project dashboard.
Vue capabilities on Layero
| Capability | How it works |
|---|---|
| Vue + Vite | Production build → dist |
| Vue Router | SPA fallback |
| Pinia | Client-side state |
| Nuxt / SSR | Node runtime |
| VITE_* | Public build variables |
| Domain and HTTPS | Configured in the project dashboard |
How to publish your project
Prepare your project
Check that the build script in package.json creates a production build. Vite normally outputs to dist; use your configured path if you changed outDir.
Start deployment
Run the command below from your project root. On first use, the CLI asks you to sign in. Alternatively, import a Git repository in the dashboard.
npx layero@latest deployCheck the result
Open the returned URL and check pages, data loading and direct links. Then connect a domain and configure environment variables.
Where it fits
Where it fits
- Dashboards and account areas
- Interactive catalogs
- Frontends for an existing API
Your workflow on Layero
- Publish from Git or the CLI
- Builds and logs in the project dashboard
- Domain and environment variables
A client application only needs a static build. For server-rendered pages, choose Nuxt and a server runtime.
FAQ
Do visitors need Node.js?
What if I need SSR?
Can I connect my own domain?
How do I update a published project?
Publish your Vue project on Layero
Start with a folder of code or import a repository in the Layero dashboard.