ci(frontend): added in big button for docs lol

This commit is contained in:
2025-09-08 16:09:08 -05:00
parent fc7ecb6ab6
commit 160444d2f4
24 changed files with 2743 additions and 310 deletions

View File

@@ -1,15 +1,39 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import { tanstackRouter } from "@tanstack/router-plugin/vite";
import tailwindcss from "@tailwindcss/vite";
import path from "path";
import dotenv from "dotenv";
import { fileURLToPath } from "url";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
dotenv.config({
path: path.resolve(__dirname, "../.env"),
});
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
base: "/lst/app/",
plugins: [
react(),
tailwindcss(),
tanstackRouter({
target: "react",
autoCodeSplitting: true,
}),
],
base: "/lst/app",
build: {
//outDir: "../backend/frontend",
//assetsDir: "assets",
emptyOutDir: true,
},
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
server: {
proxy: {
"/lst/api": {
@@ -28,6 +52,12 @@ export default defineConfig({
secure: false,
rewrite: (path) => path.replace(/^\/ws/, ""),
},
// Proxy docs to Docusaurus
"/lst/d": {
target: `http://localhost:4300`,
changeOrigin: true,
//rewrite: (path) => path.replace(/^\/lst\/d/, "/"),
},
},
},
});