Files
EvoBGP/apps/web/vite.config.ts
T
Denozordec a37c931ee7
CI / changes (push) Successful in 10s
CI / commitlint (push) Has been skipped
CI / openapi (push) Successful in 27s
CI / web (push) Successful in 38s
CI / go (push) Successful in 2m36s
CI / bird2 (push) Successful in 15s
CI / release (push) Failing after 3m7s
feat(monorepo): restructure web components and update configurations
Refactored the project structure to support a monorepo setup, moving the web application to `apps/web/` and updating related configurations. Adjusted pre-commit hooks to use `pnpm` for linting and formatting. Updated CI workflows to reflect the new directory structure and dependencies. Removed legacy files and configurations from the previous `web/` directory, streamlining the project for better maintainability and clarity.
2026-06-30 23:54:28 +07:00

25 lines
715 B
TypeScript

import tailwindcss from '@tailwindcss/vite';
import { sveltekit } from '@sveltejs/kit/vite';
import path from 'node:path';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [tailwindcss(), sveltekit()],
resolve: {
alias: {
'@evobgp/ui': path.resolve(import.meta.dirname, '../../packages/ui/src'),
'@evobgp/shared': path.resolve(import.meta.dirname, '../../packages/shared/src'),
'@evobgp/ui/globals.css': path.resolve(
import.meta.dirname,
'../../packages/ui/src/styles/globals.css'
)
}
},
server: {
proxy: {
'/v1': { target: 'http://127.0.0.1:8080', changeOrigin: true },
'/metrics': { target: 'http://127.0.0.1:8080', changeOrigin: true }
}
}
});