Updated pages.json references

This commit is contained in:
Neshura 2022-12-09 22:36:42 +01:00
parent 749c58835f
commit 9f22f4c198
No known key found for this signature in database
GPG key ID: ACDF5B6EBECF6B0A
2 changed files with 3 additions and 3 deletions

View file

@ -55,7 +55,7 @@ function Servers(props: LinkList) {
} }
export async function getServerSideProps() { export async function getServerSideProps() {
const filePath = path.join(process.cwd(), '/confs/pages.json') const filePath = path.join(process.cwd(), '/public/pages.json')
const jsonData = await fsPromises.readFile(filePath) const jsonData = await fsPromises.readFile(filePath)
const list = JSON.parse(jsonData.toString()) const list = JSON.parse(jsonData.toString())

View file

@ -40,9 +40,9 @@ function Services(props: LinkList) {
) )
} }
// Gets a List of all services specified in /confs/pages.json // Gets a List of all services specified in /public/pages.json
export async function getServerSideProps() { export async function getServerSideProps() {
const filePath = path.join(process.cwd(), './confs/pages.json') const filePath = path.join(process.cwd(), '/public/pages.json')
// TODO: look into asyncing this API call // TODO: look into asyncing this API call
const jsonData = await fsPromises.readFile(filePath) const jsonData = await fsPromises.readFile(filePath)
const list = JSON.parse(jsonData.toString()) const list = JSON.parse(jsonData.toString())