mirror of
https://github.com/misenhower/splatoon3.ink.git
synced 2026-04-25 07:18:35 -05:00
Make the data archive optional
This commit is contained in:
parent
d702340ae5
commit
ba44aec52a
|
|
@ -13,6 +13,9 @@ USER_AGENT=
|
|||
# Sentry
|
||||
SENTRY_DSN=
|
||||
|
||||
# Archive all data (can use a lot of disk space)
|
||||
ARCHIVE_DATA=false
|
||||
|
||||
# Browserless (for screenshots)
|
||||
BROWSERLESS_ENDPOINT=ws://localhost:3000
|
||||
SCREENSHOT_HOST=host.docker.internal
|
||||
|
|
|
|||
|
|
@ -180,7 +180,9 @@ export default class DataUpdater
|
|||
await this.writeFile(this.getPath(this.filename), s);
|
||||
|
||||
// Write a secondary file for archival
|
||||
await this.writeFile(this.getArchivePath(this.filename), s);
|
||||
if (process.env.ARCHIVE_DATA) {
|
||||
await this.writeFile(this.getArchivePath(this.filename), s);
|
||||
}
|
||||
}
|
||||
|
||||
getPath(filename) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user