Upgrade frontend to Node 26, React 19, Vite 8, Apollo Client 4 and ESLint 10
This commit is contained in:
44 files changed
+2940
-4597
No files matched your search
@@ -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 },
|
||||
});
|
||||
Reference in new issue
Block a user