19 lines
438 B
TypeScript
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,
|
|
},
|
|
});
|