veylant/web-public/vite.config.ts
2026-03-13 13:16:35 +01:00

19 lines
438 B
TypeScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import path from "path";
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
// Local sources
"@": path.resolve(__dirname, "./src"),
// Shared doc pages — live in the main web app, never duplicated
"@docs": path.resolve(__dirname, "../web/src/pages/docs"),
},
},
server: {
port: 3001,
},
});