yesiliva
yesiliva
CDCloudflare Developers
Created by yesiliva on 2/19/2025 in #pages-help
environmental variables toml and dashboard
I have quite a few non-secret text variables and i don't want enter these into the dahsboard. So I thought if I put them under vars as suggested in the docs name = "my-worker-dev" [vars] API_HOST = "example.com" API_ACCOUNT_ID = "example_user" SERVICE_X_DATA = { URL = "service-x-api.dev.example", MY_ID = 123 } then when i deployed with npm run build && npx wrangler pages deploy dist they do not appear on the dashboard nor is the pages recognizing the wrangler.toml pretty confused by docss which mainly refer to workers and in workers it 'works' as expected.
1 replies