Upgrade frontend to Node 26, React 19, Vite 8, Apollo Client 4 and ESLint 10

This commit is contained in:
ponas committed 2026-10-23 02:19:33 +02:00
1 parent 0a65bb2c90
commit 336f6afa5d
44 files changed
+2940 -4597

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
import { defineConfig } from "vite";
import react, { reactCompilerPreset } from "@vitejs/plugin-react";
import babel from "@rolldown/plugin-babel";
import svgr from "vite-plugin-svgr";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), babel({ presets: [reactCompilerPreset()] }), svgr()],
define: {
__DEV__: process.env.NODE_ENV !== "production",
},
envDir: "..",
server: {
host: "127.0.0.1",
proxy: Object.fromEntries(
["/admin", "/accounts", "/static", "/media", "/graphql"].map(
(path) => [path, process.env.VITE_DEV_API_PROXY || "http://127.0.0.1:3000"],
),
),
},
build: { outDir: "../static", emptyOutDir: false },
});