vite.config.mts 500 B

123456789101112131415
  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. gqlOutputPath: path.resolve(__dirname, './graphql/'),
  12. }),
  13. ],
  14. });