diff --git a/.changeset/dull-roses-report.md b/.changeset/dull-roses-report.md new file mode 100644 index 000000000..65034094d --- /dev/null +++ b/.changeset/dull-roses-report.md @@ -0,0 +1,5 @@ +--- +"@solidjs/start": patch +--- + +fix: add error boundary to catch invalid code within the document code diff --git a/packages/start/src/server/StartServer.tsx b/packages/start/src/server/StartServer.tsx index e4923361d..3b78c445f 100644 --- a/packages/start/src/server/StartServer.tsx +++ b/packages/start/src/server/StartServer.tsx @@ -74,59 +74,61 @@ export function StartServer(props: { document: Component return ( {docType as unknown as any} - - - {context.assets.map((m: any) => renderAsset(m, nonce))} - - } - scripts={ - nonce ? ( + + -