mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-08-18 00:28:14 +00:00
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:
@@ -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**:
|
||||
|
||||
Reference in New Issue
Block a user