Skip to Content
Welcome to RitoSwap's documentation!
CI / CDEnvironments & Variables

Environments and Variables

This page lists the GitHub Environments and the secrets/vars used by the pipelines and manual workflows.

Environments and site mapping

EnvironmentSite URLPrimary workflows
mainnethttps://ritoswap.comDApp pipeline, Manual deploy mainnet
testnethttps://testnet.ritoswap.comDApp pipeline, Manual deploy testnet, Manual smoke tests
docshttps://docs.ritoswap.comDocs and Storybook pipeline, Manual deploy docs
storybookhttps://ui.ritoswap.comDocs and Storybook pipeline, Manual deploy storybook

Secrets and vars are environment-scoped. The names stay the same across environments, but values (like VERCEL_PROJECT_ID) differ per environment.

Mirror dispatch environment

EnvironmentRepoPurpose
ci-dispatchritovision/ritoswap-mirrorStores the PAT used to trigger private pipelines

Secrets (GitHub)

SecretUsed for
VERCEL_TOKENAll Vercel deploys and rollbacks
VERCEL_ORG_IDAll Vercel deploys and rollbacks
VERCEL_PROJECT_IDAll Vercel deploys and rollbacks
PRIVATE_KEY_PLAYWRIGHTPlaywright smoke tests
PRIVATE_KEY_APISupertest API smoke tests
TOKEN_IDSupertest API smoke tests
CODECOV_TOKENCodecov uploads when tokens are required (for example, protected branches)

Mirror secrets (ritovision/ritoswap-mirror)

SecretUsed for
RITOSWAP_PATCross-repo dispatch for private pipelines
CODECOV_TOKENCodecov uploads for the mirror repo

Vars (GitHub)

VarUsed for
TEST_BASE_URLBase URL for smoke tests (currently the testnet build URL)
CHAIN_IDChain ID for Supertest API tests
NEXT_PUBLIC_ENABLE_STATE_WORKERToggle used by Supertest API tests
NEXT_PUBLIC_AI_CHAT_REQUIRES_JWTToggle used by Supertest API tests

For production, set NEXT_PUBLIC_ENABLE_STATE_WORKER=true and NEXT_PUBLIC_AI_CHAT_REQUIRES_JWT=true for dapp/e2e/supertest/api.test.ts and dapp/e2e/supertest/pinecone.test.ts. The base URL used by smoke tests is TEST_BASE_URL and can be changed if needed.

Predeploy E2E defaults

The predeploy E2E action sets a test-focused environment during local builds. These are defaults in .github/actions/run-predeploy-e2e/action.yml and do not come from secrets.

VariableDefault value
DATABASE_URLpostgresql://testuser:testpass@localhost:5432/testdb?schema=public
NEXT_PUBLIC_ACTIVE_CHAINSepolia
JWT_ISShttps://ritoswap.local
JWT_AUDhttps://api.ritoswap.local
JWT_SECRETtest-secret-minimum-32-characters-long-for-hs256-algorithm
JWT_ALGHS256
AI_PROVIDERlmstudio
AI_BASE_URLhttp://127.0.0.1:1234
AI_LOCAL_MODEL_1llama-3.1-8b-lexi-uncensored-v2
AI_IMAGE_PROVIDERopenai
OPENAI_API_KEYsk-test_dummy_key_for_build_only
OPENAI_IMAGE_MODELgpt-image-1
NEXT_PUBLIC_ACTIVATE_WORKERfalse
Last updated on

RitoSwap Docs does not store, collect or access any of your conversations. All saved prompts are stored locally in your browser only.