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:
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.
The Dashboard reads data about Vendure Platform capabilities from the Vendure catalog at build time. The build, and the start of the Vite dev server, send one request to https://api.vendure.io/v1/catalog and put the result into the built files. The browser makes no request to api.vendure.io.
If the request fails or takes more than 2 seconds, the build uses a copy of the catalog that ships with @vendure/common. The build does not fail.
For a build with no internet access, set VENDURE_DASHBOARD_SKIP_PLATFORM_CATALOG_FETCH=true. The build then uses the bundled copy and sends no request.
To build the Dashboard without the Vendure Platform items, set the platformPromotion: false option of vendureDashboardPlugin, or set VENDURE_DASHBOARD_PLATFORM_PROMOTION=false. The build then sends no request to api.vendure.io.
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 configappDirArchitecture reviews, custom plugin work, migrations, ongoing support. Get a hand from the team that builds Vendure.
Talk to the team