Files
frontend/vite.config.ts
T
ksv741 e31ab35a5a
Frontend security / security (pull_request) Successful in 9s
Frontend verify / verify (pull_request) Successful in 3m55s
Conventional commits / commits (pull_request) Successful in 21s
Frontend security / security (push) Successful in 8s
Frontend verify / verify (push) Successful in 3m50s
feat: add frontend container delivery
2026-09-16 09:41:38 +03:00

18 lines
524 B
TypeScript

import { fileURLToPath, URL } from "node:url";
import babel from "@rolldown/plugin-babel";
import react, { reactCompilerPreset } from "@vitejs/plugin-react";
import { defineConfig } from "vite";
// https://vite.dev/config/
export default defineConfig({
plugins: [react(), babel({ presets: [reactCompilerPreset()] })],
resolve: { alias: { "@": fileURLToPath(new URL("./src", import.meta.url)) } },
server: {
proxy: {
"/api/": {
target: process.env.API_PROXY_TARGET ?? "http://localhost:3000",
},
},
},
});