]> git.r.bdr.sh - rbdr/forum/blobdiff - src/lib/config/config.ts
Update / use typescript
[rbdr/forum] / src / lib / config / config.ts
diff --git a/src/lib/config/config.ts b/src/lib/config/config.ts
new file mode 100644 (file)
index 0000000..1ec5ab2
--- /dev/null
@@ -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;