Files
status/vite.config.ts
zeekay 3c1d432109 rewrite: Next.js → Vite 8 SPA + hanzoai/spa
WIP: lockfile deleted; deps swap Next 16 → Vite 8 + React 19 + plugin-react.
Typecheck not verified locally (no pnpm install performed); pure-TS modules
under src/lib/ compile cleanly under ES2022 + bundler.

- Vite 8 at repo root (no apps/web subdir -- single-app repo)
- index.html + src/{main,App}.tsx + styles.css (monochrome dark, Basel Grotesk)
- Client-side status polling (JSON-RPC eth_blockNumber + no-cors reachability
  for third-party origins) in src/lib/status.ts
- Shared chain/service/contract config in src/lib/chains.ts
- Dockerfile: multi-stage node:22-alpine -> ghcr.io/hanzoai/spa (copy dist/ to
  /public)
- Delete app/, next.config.ts, next-env.d.ts, open-next.config.ts,
  wrangler.jsonc, .github/workflows/deploy.yml (CF Worker deploy obsolete)
2026-04-19 00:00:43 -07:00

16 lines
268 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
build: {
outDir: 'dist',
emptyOutDir: true,
target: 'es2022',
},
server: {
port: 3333,
host: '0.0.0.0',
},
})