You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
742 B

import react from "@vitejs/plugin-react";
import { defineConfig, loadEnv } from "vite";
import svgr from "vite-plugin-svgr";
export default defineConfig(({ mode }) => {
// @ts-ignore
const env = loadEnv(mode, process.cwd());
console.log(env);
return {
base: "/",
plugins: [svgr(), react()],
server: {
proxy: {
"/api": {target: "https://postamates.spatialsystems.ru/api", changeOrigin: true},
"/realms": "https://kk.dev.selftech.ru/",
},
},
css: {
preprocessorOptions: {
less: {
modifyVars: {
"primary-color": "#CC2222FF",
"border-radius-base": "5px",
},
javascriptEnabled: true,
},
},
},
};
});