]> git.r.bdr.sh - rbdr/forum/blobdiff - src/config/config.js
Update to SvelteKit
[rbdr/forum] / src / config / config.js
diff --git a/src/config/config.js b/src/config/config.js
new file mode 100644 (file)
index 0000000..6d819a3
--- /dev/null
@@ -0,0 +1,11 @@
+import { version as packageVersion } from '../../package.json';
+
+/*
+ * 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 socketServer = import.meta.env.FORUM_SOCKET_SERVER;
+
+export const version = packageVersion;