Full build: Vite/React acid-terminal frontend (BEARER design system, Panchang/Sentient/Fragment Mono, neon layer, palette audit script), HoodquidityVaults Foundry contracts (single+dual deposits via Chainlink-style feeds, hybrid exit, 10% platform fee, boost, Genesis LP), Reown AppKit wallet connect with Robinhood Chain testnet (46630), live data from Dexscreener and onchain reads, partner portal, design-sync setup for claude.ai/design. Deploy: static via Forgejo Actions platform, BUILD_DIR=apps/web/dist (.env). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
35 lines
926 B
TypeScript
35 lines
926 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import { compression } from "vite-plugin-compression2";
|
|
import path from "node:path";
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
tailwindcss(),
|
|
// precompressed assets for the static server
|
|
compression({ algorithms: ["gzip"] }),
|
|
compression({ algorithms: ["brotliCompress"], filename: "[path][base].br" }),
|
|
],
|
|
server: {
|
|
port: process.env.PORT ? Number(process.env.PORT) : 5173,
|
|
strictPort: false,
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
build: {
|
|
target: "es2022",
|
|
rollupOptions: {
|
|
output: {
|
|
manualChunks: {
|
|
web3: ["wagmi", "viem", "@reown/appkit", "@reown/appkit-adapter-wagmi"],
|
|
vendor: ["react", "react-dom", "react-router-dom"],
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|