Skip to content

Commit

Permalink
Merge pull request #263 from RSamaium/v4.1.0
Browse files Browse the repository at this point in the history
V4.1.0
  • Loading branch information
RSamaium authored Oct 13, 2023
2 parents 1b09c74 + 000ce31 commit 0498cc2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions docs/plugins/title-screen.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,22 @@ In MMORPG, the player must create an account and log in with his account to star
map = '<map id>'
```

## If deployed game on server
If you deployed your game on server, it might be required to set correct server url for axios calls.
If your game is on https://google.com you should set VITE_GAME_URL env variable to https://google.com (without ending slash)

```
[compilerOptions.build]
serverUrl = '$ENV:VITE_GAME_URL'
```

or just

```
[compilerOptions.build]
serverUrl = 'https://google.com'
```

## Usage (MMORPG only)

To make a save, run the method [player.save()](/commands/common.html#save-progress). The method has been overloaded to store the data in MongoDB
Expand Down
2 changes: 1 addition & 1 deletion packages/client/rpg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
format = "umd"

[vite.build.rollupOptions]
external = ["@rpgjs/common", "vue", "rxjs"]
external = ["@rpgjs/common", "vue", "rxjs", "react", "react-dom"]

0 comments on commit 0498cc2

Please sign in to comment.