Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/homepage/commit/2bdd9eaa880582e2736daba2ec3a4ff3068ee880
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
0 additions and
21 deletions
@ -1,33 +1,13 @@
import checkAndCopyConfig , { getSettings } from "utils/config/config" ;
import themes from "utils/styles/themes" ;
import { servicesResponse , bookmarksResponse } from "utils/config/api-response" ;
export async function getServerSideProps ( { res } ) {
checkAndCopyConfig ( "settings.yaml" ) ;
const settings = getSettings ( ) ;
const services = await servicesResponse ( ) ;
const bookmarks = await bookmarksResponse ( ) ;
const color = settings . color || "slate" ;
const theme = settings . theme || "dark" ;
const serviceShortcuts = services . map ( ( group ) =>
group . services . map ( ( service ) => ( {
name : service . name ,
url : service . href ,
description : service . description ,
} ) )
) ;
const bookmarkShortcuts = bookmarks . map ( ( group ) =>
group . bookmarks . map ( ( service ) => ( {
name : service . name ,
url : service . href ,
} ) )
) ;
const shortcuts = [ ... serviceShortcuts , ... bookmarkShortcuts ] . flat ( ) ;
const manifest = {
name : settings . title || "Homepage" ,
short _name : settings . title || "Homepage" ,
@ -43,7 +23,6 @@ export async function getServerSideProps({ res }) {
type : "image/png" ,
} ,
] ,
shortcuts ,
theme _color : themes [ color ] [ theme ] ,
background _color : themes [ color ] [ theme ] ,
display : "standalone" ,