1
0
mirror of https://github.com/spacebarchat/docs.git synced 2024-11-08 19:32:30 +01:00

add note about running build or generate:schema when you change things

This commit is contained in:
Madeline 2023-01-08 19:45:43 +11:00
parent 42767527c8
commit afce38d1e3
No known key found for this signature in database
GPG Key ID: 1958E017C36F2E47

View File

@ -1,6 +1,6 @@
# Contributing # Contributing
!!! info "[Have you read the Code of Conduct?](conduct.md)" !!! question "[Have you read the Code of Conduct?](conduct.md)"
## Style and a note on etiquette ## Style and a note on etiquette
@ -37,3 +37,7 @@ As an example, `GET /api/updates?platform={}` which returns the `url`, `pub_date
For the Gateway it's the same procedure, except now you can't use the network logger of your devtools For the Gateway it's the same procedure, except now you can't use the network logger of your devtools
because the gateway returns responses encoded with [erlpack](https://github.com/discord/erlpack). because the gateway returns responses encoded with [erlpack](https://github.com/discord/erlpack).
Easy fix though, just edit the `DeveloperOptionsStore` localStorage key so that `logGatewayEvents` is true, and reload the client. Easy fix though, just edit the `DeveloperOptionsStore` localStorage key so that `logGatewayEvents` is true, and reload the client.
!!! warning
Make sure you rerun `npm run build` every time you edit source code. Additionally, make sure you run `npm run generate:schema` whenever you change a
schema. If you want to do both, there's a shortcut: `npm run setup`.