20 lines
614 B
TypeScript
20 lines
614 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
"@api": new URL("./src/api", import.meta.url).pathname,
|
|
"@components": new URL("./src/components", import.meta.url).pathname,
|
|
"@hooks": new URL("./src/hooks", import.meta.url).pathname,
|
|
"@layouts": new URL("./src/layouts", import.meta.url).pathname,
|
|
"@pages": new URL("./src/pages", import.meta.url).pathname,
|
|
"@/types": new URL("./src/types", import.meta.url).pathname,
|
|
},
|
|
},
|
|
server: {
|
|
port: 3000,
|
|
},
|
|
});
|