Server rendered HTML using Go, optimized frontend with Vite.
pnpm i
pnpm run init
pnpm vite dev
go run .
By default, the Go server expects the Vite server to be on port 5173
, which can be configured with VITE_PORT
.
VITE_PORT=4000 go run .
pnpm tsx vite/build.tsx
go build
ENV="PROD" ./go-vite