vite.config.mts 558 B

12345678910111213141516
  1. import { vendureDashboardPlugin } from '@vendure/dashboard/plugin';
  2. import path from 'path';
  3. import { pathToFileURL } from 'url';
  4. import { defineConfig } from 'vite';
  5. export default defineConfig({
  6. base: '/dashboard/',
  7. plugins: [
  8. vendureDashboardPlugin({
  9. vendureConfigPath: pathToFileURL('./dev-config.ts'),
  10. adminUiConfig: { apiHost: 'http://localhost', apiPort: 3000 },
  11. gqlTadaOutputPath: path.resolve(__dirname, './graphql/'),
  12. pluginScanPatterns: ['*vendure*'],
  13. }) as any,
  14. ],
  15. });