1
0

vite.config.mts 527 B

123456789101112131415161718
  1. import { vendureDashboardPlugin } from '@vendure/dashboard/vite';
  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. api: {
  11. host: 'http://localhost',
  12. port: 3000,
  13. },
  14. gqlOutputPath: path.resolve(__dirname, './graphql/'),
  15. }),
  16. ],
  17. });