diff --git a/src/info/pages/projects/streaming/index.js b/src/info/pages/projects/streaming/index.js
index be403dc..7587e9b 100644
--- a/src/info/pages/projects/streaming/index.js
+++ b/src/info/pages/projects/streaming/index.js
@@ -1,8 +1,26 @@
import BasicPage from "../../../components/basic-page";
import PBlock from "../../../components/project-block";
-import { STREAMING } from "../../../js/variables";
-export default function Services() {
+// An object listing pages folks can visit
+export async function getStaticProps() {
+ const fs = require("fs");
+ const yaml = require("js-yaml");
+ let STREAMING = {};
+
+ try {
+ let fileContent = fs.readFileSync("./data/streaming.yml", "utf8");
+ STREAMING = yaml.load(fileContent);
+ } catch (e) {
+ console.log(e);
+ }
+ return {
+ props: {
+ STREAMING,
+ },
+ };
+}
+
+export default function Services({ STREAMING }) {
return (
diff --git a/src/info/pages/servers/index.js b/src/info/pages/servers/index.js
index dbb1ec4..c234d5b 100644
--- a/src/info/pages/servers/index.js
+++ b/src/info/pages/servers/index.js
@@ -2,11 +2,29 @@ import BasicPage from "../../components/basic-page";
import WCard from "../../components/werefox-card";
import SBlock from "../../components/server-block";
-export default function Servers() {
+// An object listing pages folks can visit
+export async function getStaticProps() {
+ const fs = require("fs");
+ const yaml = require("js-yaml");
+ let SERVERS = {};
+
+ try {
+ let fileContent = fs.readFileSync("./data/servers.yml", "utf8");
+ SERVERS = yaml.load(fileContent);
+ } catch (e) {
+ console.log(e);
+ }
+ return {
+ props: {
+ SERVERS,
+ },
+ };
+}
+export default function Servers({ SERVERS }) {
return (
-
+
);