Files
zeekayandHanzo Dev 766aa1f8bd Build the client with Vite
Create React App is deprecated. Files with JSX become .jsx, and the
webpack require contexts become import.meta.glob: translations and
deploy data ship in the bundle as before, while ABIs, level texts and
level sources load when a level opens. ABIs and sources are read from
contracts/out and contracts/src, so the public/contracts symlink into
the deleted contracts/contracts tree goes. A level without art falls
back to the default tile when its image fails to load.

Settings move to VITE_* variables in the root .env. build-redirects.cjs
only wrote a Netlify _redirects for the Sentry tunnel, and Netlify was
dropped in a97d6717, so it and the tunnel go.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-23 04:00:52 -07:00

351 B

client

The game's web client: React, Vite and viem.

yarn dev      # dev server
yarn build    # production build in build/

ABIs and level sources are read from ../contracts (run forge build first); deployed addresses from src/gamedata/deploy.<network>.json. Environment comes from the repository root .env (see .env-sample).