summaryrefslogtreecommitdiff
path: root/src/util/consts.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/consts.ts')
-rw-r--r--src/util/consts.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/consts.ts b/src/util/consts.ts
new file mode 100644
index 0000000..5dc77ba
--- /dev/null
+++ b/src/util/consts.ts
@@ -0,0 +1,4 @@
+export const PPV = Number(process.env["AKIBA_SOUKEN_AR_ITEM_PPV"] ?? "100");
+if (!Number.isInteger(PPV)) {
+ throw new Error(`AKIBA_SOUKEN_AR_ITEM_PPVに整数をセットして下さい`);
+}