Files
paradox-save-parser-frontend/src/config/AppConfig.ts
T
2026-09-23 18:24:45 +02:00

24 lines
749 B
TypeScript

'server'
// Default app configuration, values can be overrided in runtimeConfig.json
export const defaultConfig = {
services: {
saveParserBackend: {
url: 'http://127.0.0.1:5226',
},
},
saveUpload: {
// Size of a save if it is uploaded as uncompressed. The browser packs
// saves as a stream, so these limits are about the backend's disk
// rather than about memory.
maxSizePlainTextMB: 200,
// Archives produced by the game, recognized by the zip magic bytes.
maxSizeCompressedMB: 60,
// read COMPRESSION.md
zstdCompressionLevel: 10,
},
}
export type AppConfig = typeof defaultConfig
export type SaveUploadConfig = AppConfig['saveUpload']