1
0
mirror of https://github.com/spacebarchat/docs.git synced 2024-11-25 11:42:58 +01:00

Merge pull request #52 from fosscord/pr/948

fosscord/fosscord-server#948
This commit is contained in:
Madeline 2023-01-18 23:15:05 +11:00 committed by GitHub
commit 8dea5134fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -19,3 +19,4 @@ in the `fosscord-server` folder, with the format `NAME=VALUE` with each on new l
| STORAGE_PROVIDER | "s3" or "file" | CDN storage provider |
| STORAGE_BUCKET | string | S3 bucket name |
| STORAGE_REGION | string | S3 storage region |
| ONLY_CACHE_JS | any | If set, [`npm run generate:client`](../npmScripts.md#generateclient) will only cache JS files. |

View File

@ -34,10 +34,8 @@ Downloads a (mostly) complete discord.com web client and runs some basic patches
- Prevents `localStorage` deletion (for [plugins](Test%20Client/plugins.md))
- Adds `fast-identify` support
The script can only search for all javascript client files,
as it is difficult to determine the filetype of other assets.
Instead, it uses a `cacheMisses` file in `fosscord-server/assets`
generated at server runtime.
Running this script will, at the time of writing, download roughly ~5000 assets.
To only download JS files (~700 assets), set the [`ONLY_CACHE_JS` environment variable](configuration/env.md)
### fast-identify