mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-28 09:58:11 +03:00
feat: just a bunch of cleanup
- no deduping, ui improvements, general fixups
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
REDIRECT_URI: "https://example.com",
|
||||
},
|
||||
ARC_AUTH_TOKEN: "unused",
|
||||
OUR_URL: "https://127.0.0.1:8080/",
|
||||
OUR_URL: "https://127.0.0.1:8080",
|
||||
CLIENT_DEV_SERVER: "http://127.0.0.1:3000",
|
||||
ENABLE_SERVER_HTTPS: true,
|
||||
OPTIONS_ALWAYS_SUCCEEDS: true,
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "tachi-server",
|
||||
"version": "2.2.0",
|
||||
"version": "2.3.0-dev",
|
||||
"description": "A score tracking server.",
|
||||
"main": "./js/main.js",
|
||||
"files": [
|
||||
|
||||
@@ -190,7 +190,20 @@ const err = p(config, {
|
||||
MAX_QUEST_SUBSCRIPTIONS: p.optional(p.isPositiveInteger),
|
||||
MAX_FOLLOWING_AMOUNT: p.optional(p.isPositiveInteger),
|
||||
MAX_RIVALS: p.optional(p.isPositiveInteger),
|
||||
OUR_URL: "string",
|
||||
OUR_URL: (self) => {
|
||||
if (typeof self !== "string") {
|
||||
return "Expected a string.";
|
||||
}
|
||||
|
||||
if (self.endsWith("/")) {
|
||||
return `OUR_URL should not end with a trailing slash. Use ${self.substring(
|
||||
0,
|
||||
self.length - 1
|
||||
)} instead.`;
|
||||
}
|
||||
|
||||
return true;
|
||||
},
|
||||
INVITE_CODE_CONFIG: p.optional({
|
||||
BATCH_SIZE: p.isPositiveInteger,
|
||||
INVITE_CAP: p.isPositiveInteger,
|
||||
|
||||
Reference in New Issue
Block a user