Environments and domains
Purpose
A game can have several environments: development (dev), staging and live (prod). Each environment has its own players, data and API keys. This tab lists the game’s environments as cards; it lets you bind each environment to its own domains, add a new environment and archive an environment. The tab is open only to a super admin.
When to use
- To bind a new address to an environment when your game will be opened from it in a browser.
- To add a staging or development environment.
- To hide an environment that is not used.
Step by step
Bind a domain
- In the Alan adları (Domains) box on the environment’s card, write one domain per line (for example
oyun.example.com). Names are lowercased; empty lines and duplicates are dropped. - Write your reason in the Gerekçe (Reason) field.
- Press Alan adlarını kaydet (Save domains).
Add an environment
- Press Ortam ekle (Add environment) at the top of the tab.
- Choose the environment kind: Development (dev), Staging or Live (prod). The window selects Staging by default.
- Write your reason and confirm. Domains and Google sign-in are bound separately after the environment is added.
Archive or reopen an environment
The Arşivle (Archive) button under the card hides the environment; no data is deleted. An archived environment shows a Geri aç (Reopen) button and its domain fields are disabled.
Warning
Keep the old address in the list until the new address works and the old one redirects. Once an address is removed, a game opened from it cannot sign in or write records at once. When you press Save, the removed addresses are listed in a dialog; the change is not applied until you choose Yine de kaldır ve kaydet (the confirm button). If the list becomes empty, the server’s general allowlist applies.
Note
Domains are used as an allowlist in the origin check of requests coming from a browser. Bind every address you serve your game from to the right environment; a domain bound to another environment is not accepted.
Fields and options
| Field | Required | Description |
|---|---|---|
| Domains | No | One domain per line; at most 10 |
| Reason | Yes | 8-500 characters |
| Environment kind (add window) | Yes | Development, Staging or Live |
| Action reason (in windows) | Yes | 8-500 characters |
Common situations
| Situation | What to do |
|---|---|
| “Bu alan adı başka bir ortama bağlı” (This domain is bound to another environment) | The same domain cannot be bound to two environments. Remove it from the other environment first. |
| “En fazla 10 alan adı bağlanabilir” (At most 10 domains can be bound) | Shorten the list; at most 10 domains can be bound to one environment. |
| “Önce başka bir ortam seçin” (First select another environment) | The currently selected environment cannot be archived; select another environment from the top bar. |
| The tab says “permission required” | This tab is open only to a super admin. |
| The game on the old address cannot sign in | The address was removed from the list. Add it back and save, then finish moving to the new address. |
| Archiving was rejected | The environment has a live grant or an active API key; the window shows the reason. |