The Vendure Dashboard offers flexible deployment options. You can either serve it directly through your Vendure Server using the DashboardPlugin, or host it independently as a static site.
The DashboardPlugin integrates seamlessly with your Vendure Server by:
The Vendure Dashboard can be hosted independently as a static site, since the build produces standard web assets (index.html, CSS, and JS files). This approach offers maximum flexibility for deployment on any static hosting service.
To configure the DashboardPlugin, follow these steps:
Update your vite.config.mts to set the base path where the dashboard will be served:
If you want to use the Angular Admin UI and the Dashboard together, both plugins can now be used simultaneously without any special configuration.
Add the DashboardPlugin to your vendure-config.ts:
Before deploying your Vendure application, build the dashboard:
This command creates optimized production files in the dist/dashboard directory that the DashboardPlugin will serve.
Once configured and built, your dashboard will be accessible at:
http://your-server-url/dashboard/
| Option | Type | Description |
|---|---|---|
route | string | The URL path where the dashboard will be served (must match Vite's base path) |
appDir | string | Path to the directory containing the built dashboard files |
route in DashboardPlugin matches the base in your Vite confignpx vite build for optimized production buildsThe dashboard can be hosted independently from your Vendure Server on any static hosting service (Netlify, Vercel, AWS S3, etc.).
When hosting standalone, you must configure the dashboard to connect to your Admin API endpoint:
Environment variables are resolved at build time and embedded as static strings in the final bundles. Ensure these variables are available during the build process, not just at runtime.
Build the dashboard:
Deploy the contents of the dist/dashboard directory to your hosting service
When hosting the dashboard separately, configure CORS on your Vendure Server:
route matches the base path in Vite configappDir