Fixing netlify
This commit is contained in:
@@ -8,9 +8,11 @@ indexPage: index
|
||||
`;
|
||||
|
||||
export const INDEX_TEMPLATE =
|
||||
`Hello! And welcome to your brand new SilverBullet space!
|
||||
`This is the index page of your fresh SilverBullet space. It is the default page that is loaded when you open a space.
|
||||
|
||||
For your convenience we're including an on-boarding live template below. Enjoy!
|
||||
|
||||
\`\`\`template
|
||||
page: "[[!silverbullet.md/Getting Started]]"
|
||||
page: "[[!localhost:3001/Getting Started]]"
|
||||
\`\`\`
|
||||
`;
|
||||
|
||||
@@ -57,6 +57,11 @@ export class HttpSpacePrimitives implements SpacePrimitives {
|
||||
if (
|
||||
errorMessage.includes("fetch") || errorMessage.includes("load failed")
|
||||
) {
|
||||
console.error(
|
||||
"Got error fetching, throwing offline",
|
||||
url,
|
||||
e.errorMessage,
|
||||
);
|
||||
throw new Error("Offline");
|
||||
}
|
||||
throw e;
|
||||
|
||||
+1
-2
@@ -1,9 +1,8 @@
|
||||
import { SETTINGS_TEMPLATE } from "./PAGE_TEMPLATES.ts";
|
||||
import { INDEX_TEMPLATE, SETTINGS_TEMPLATE } from "./PAGE_TEMPLATES.ts";
|
||||
import { YAML } from "./deps.ts";
|
||||
import { SpacePrimitives } from "./spaces/space_primitives.ts";
|
||||
import { expandPropertyNames } from "$sb/lib/json.ts";
|
||||
import type { BuiltinSettings } from "../web/types.ts";
|
||||
import { INDEX_TEMPLATE } from "./PAGE_TEMPLATES.ts";
|
||||
|
||||
/**
|
||||
* Runs a function safely by catching any errors and logging them to the console.
|
||||
|
||||
Reference in New Issue
Block a user