Updated pages.json references
This commit is contained in:
parent
749c58835f
commit
9f22f4c198
2 changed files with 3 additions and 3 deletions
|
@ -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())
|
||||||
|
|
||||||
|
|
|
@ -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())
|
||||||
|
|
Loading…
Reference in a new issue