feat(landing): public multi-page site#280
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scripts/build-landing.ts) with pureparseFrontMatter,renderMarkdown,renderTemplatehelpers — no new npm packagessrc/landing/dist/: home hub (live metrics tiles), gameplay/economy/faq/screens, history timeline (v1/v2/v3), investors (3 tracks), press kit, legal pages, seed devlog postGET /api/public/metrics, 60s cache) — player count, NFTs minted, USDT paid out, weekly active; client-side fetch fills[data-metric]spans with static fallbackslandingPath→dist/,resolveLandingFileclean-URL resolver (/investors/→dist/investors/index.html), 404 page, dev-mode static asset serving, prod via@fastify/staticsrc/landing/index.htmldeleted — superseded bydist/index.htmltonconnect-manifest.json+logo.pngremain at origin root (copied todist/by the build)RUN npm run build:landingadded after frontend build;tsxwas already independenciesTest plan
npm run lint— cleannpm run typecheck— cleannpm run test:backend— 766/766 passing (754 pre-existing + 12 new generator tests)npm run build:landing— 16 pages built, all assets presentnpm run dev— smoke-test all content routes return 200,/investors(no slash) 200,/nope404,/api/public/metricsreturns JSON,/tonconnect-manifest.json200,/gameserves Mini AppNotes
data-metricspans on home + investors use static fallbacks until MongoDB is reachable; the fetch script fills them on loadEXPEDITION_FAUCET_ENABLEDcopy in the seed blog post is forward-looking — update when faucet flips on🤖 Generated with Claude Code