archive legacy code, begin clean rewrite

legacy branch preserves all prior code.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-01 12:58:11 +01:00
parent 086572dfcc
commit de812a0fd1
65 changed files with 4 additions and 10852 deletions

View File

@@ -1,41 +0,0 @@
import react from "@vitejs/plugin-react";
import { defineConfig, loadEnv } from "vite";
import { handleSteamRefresh } from "./server/steam-api.mjs";
import { handleGogAuth, handleGogRefresh } from "./server/gog-api.mjs";
const apiMiddlewarePlugin = {
name: "api-middleware",
configureServer(server) {
server.middlewares.use((req, res, next) => {
const url = req.url ?? "";
if (url.startsWith("/api/steam/refresh")) {
return handleSteamRefresh(req, res);
}
if (url.startsWith("/api/gog/auth")) {
return handleGogAuth(req, res);
}
if (url.startsWith("/api/gog/refresh")) {
return handleGogRefresh(req, res);
}
next();
});
},
};
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), "");
return {
base: env.VITE_BASE_PATH || "/",
plugins: [react(), apiMiddlewarePlugin],
server: {
port: 5173,
hmr: {
overlay: true,
},
watch: {
usePolling: true,
},
},
};
});