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
18 lines
524 B
TypeScript
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",
|
|
},
|
|
},
|
|
},
|
|
});
|