mirror of
https://github.com/gnmyt/LicenseAPI.git
synced 2026-01-11 10:41:46 +00:00
Create vite.config.js
This commit is contained in:
22
dashboard/vite.config.js
Normal file
22
dashboard/vite.config.js
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
import {defineConfig} from "vite";
|
||||||
|
import path from "path";
|
||||||
|
import react from "@vitejs/plugin-react";
|
||||||
|
|
||||||
|
export default defineConfig({
|
||||||
|
plugins: [react()],
|
||||||
|
resolve: {
|
||||||
|
alias: {
|
||||||
|
"@contexts": path.resolve(__dirname, "./src/common/contexts"),
|
||||||
|
"@components": path.resolve(__dirname, "./src/common/components"),
|
||||||
|
"@states": path.resolve(__dirname, "./src/states"),
|
||||||
|
"@": path.resolve(__dirname, "./src"),
|
||||||
|
}
|
||||||
|
},
|
||||||
|
server: {
|
||||||
|
proxy: {
|
||||||
|
"/api": {
|
||||||
|
target: "http://localhost:8025"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user