Vue

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.

Deployment overviewGit / CLI
Vue
package.jsonnpm run build
PublishLayeroHTTPS · Git · CLI

What 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

CapabilityHow it works
Vue + ViteProduction build → dist
Vue RouterSPA fallback
PiniaClient-side state
Nuxt / SSRNode runtime
VITE_*Public build variables
Domain and HTTPSConfigured 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 deploy

Check 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
What to configure before launch

A client application only needs a static build. For server-rendered pages, choose Nuxt and a server runtime.

FAQ

Do visitors need Node.js?
No. A built Vue SPA runs in the browser while Layero serves HTML, CSS and JavaScript. Node.js is needed by the build tools.
What if I need SSR?
Consider Nuxt for server-rendered Vue. A server build requires a runtime and a start command; it cannot be published as a plain static folder.
Can I connect my own domain?
Yes. Add the domain in the project dashboard and configure DNS using the instructions. See the pricing page for plan requirements and available features.
How do I update a published project?
Push changes to the connected Git repository or deploy again from the project folder. The build result and logs appear in the dashboard.

Publish your Vue project on Layero

Start with a folder of code or import a repository in the Layero dashboard.