Fetch archived games from api, allow development against production & staging (#2045)

## Description:

Instead of going through the game server to fetch archived games, have
the client fetch from api directly. Also loosen up cors restrictions &
domain checks so localhost:9000 can talk to staging or production
servers

related to  #1571

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced

## Please put your Discord username so you can be contacted if a bug or
regression is found:

evan
This commit is contained in:
evanpelle
2025-09-11 14:07:07 -07:00
committed by GitHub
parent 319508c360
commit eec3b0e2bb
7 changed files with 103 additions and 81 deletions
+16
View File
@@ -87,6 +87,22 @@ To run just the server with development settings:
npm run start:server-dev
```
### Connecting to staging or production backends
Sometimes it's useful to connect to production servers when replaying a game, testing user profiles, purchases, or login flow.
To connect to staging api servers:
```bash
npm run dev:staging
```
To connect to production api servers:
```bash
npm run dev:prod
```
## 🛠️ Development Tools
- **Format code**: