diff --git a/server/http_server.ts b/server/http_server.ts index 4dc1f883..ae8ed585 100644 --- a/server/http_server.ts +++ b/server/http_server.ts @@ -246,8 +246,12 @@ export class HttpServer { url.pathname === "/" ) { // Serve the UI (index.html) - const indexPage = - parsePageRef(this.spaceServer.config?.indexPage!).page; + let indexPage = "index"; + try { + indexPage = parsePageRef(this.spaceServer.config?.indexPage!).page; + } catch (e: any) { + console.error("Error parsing index page from config", e); + } return this.renderHtmlPage(this.spaceServer, indexPage, c); } try {