aboutsummaryrefslogtreecommitdiff
path: root/src/lib/config/config.ts
diff options
context:
space:
mode:
authorRuben Beltran del Rio <ruben@unlimited.pizza>2022-05-01 00:56:06 +0200
committerRuben Beltran del Rio <ruben@unlimited.pizza>2022-05-01 00:56:06 +0200
commita7cf03c192470cbab13edeb1aec99e0c66dede10 (patch)
tree581b4430d1de958dcb666bae80a7678332134602 /src/lib/config/config.ts
parent010f307346e525ac2e4239a0549d2c1a4d6d102b (diff)
Update / use typescript
Diffstat (limited to 'src/lib/config/config.ts')
-rw-r--r--src/lib/config/config.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/config/config.ts b/src/lib/config/config.ts
new file mode 100644
index 0000000..1ec5ab2
--- /dev/null
+++ b/src/lib/config/config.ts
@@ -0,0 +1,17 @@
+const internals = {
+ version: '1.0.0'
+};
+
+/*
+ * The main configuration object for the Forum frontend. These values
+ * are calculated during compile time and need to be set in a .env
+ * file, otherwise it won't work.
+ */
+
+export const apollo = {
+ uri: import.meta.env.VITE_APOLLO_SERVER,
+ name: 'forum',
+ version: internals.version
+};
+
+export const version = internals.version;