Internet Architecture
Current internet architecture and URL structure of the GetSmart Token platform.
The GetSmart Token platform runs on Cloudflare Pages with Edge Workers for serverless functions. Deployments are automated from the main branch on GitHub.
| Component | Platform | Repo |
|---|---|---|
| Main site (Next.js 15) | Cloudflare Pages | getsmart-web |
| Chatbot worker | Cloudflare Workers | Cloudflare dashboard |
| AI Agent (standalone) | — | gemma_airgap |
| Help docs (Hugo) | Netlify | gs_help_int |
| Database | MongoDB Atlas | — |
The main site (getstoken.org) is a Next.js 15 app compiled for Cloudflare Pages using @cloudflare/next-on-pages.
npx @cloudflare/next-on-pages
| Variable | Purpose |
|---|---|
NEXT_PUBLIC_GEMINI_API_KEY_1 | Google AI Studio API key (Gemma 4 cloud inference) |
NEXT_PUBLIC_APP_URL | Public site URL |
NEXT_PUBLIC_CHATBOT_URL | Cloudflare chatbot worker URL |
COINBASE_CLIENT_ID | Coinbase OAuth app ID |
COINBASE_CLIENT_SECRET | Coinbase OAuth secret |
MONGODB_URI | MongoDB Atlas connection string |
main on GitHubnext build + next-on-pages)NEXT_PUBLIC_* variables must be set in Cloudflare Pages before the build runs — they are inlined at build time/api/chat) must use getRequestContext() from @cloudflare/next-on-pages to access Cloudflare env bindings at runtimeexport const runtime = 'edge' declaration is required on all API routesThis documentation site is built with Hugo Extended and hosted on Netlify.
npm run build # runs hugo
npm install # installs hugo-extended
npm run serve # http://localhost:1313
Or with Docker:
docker-compose up
The GetSmart Assistant chatbot runs as a Cloudflare Worker at:
https://getsmart-chatbot.multipleintelligencesuk.workers.dev
It is embedded on the main site via a <script> tag in the layout.
main (getsmart-web)main (gs_help_int)To roll back Cloudflare Pages to a previous deployment:
Submit a new issue to the gs_help_int repo for documentation corrections or improvements.
Current internet architecture and URL structure of the GetSmart Token platform.
Blue-Green deployment strategy for the GetSmart Token Project’s Internet Architecture.
A practical guide to database synchronization in Blue-Green deployments using snapshots and migrations.
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.