Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit c0cbc2a

Browse files
authored
Merge pull request #109 from alephjs/__aleph
refactor: use div instead of main
2 parents 660c558 + f09568f commit c0cbc2a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

framework/react/bootstrap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default async function bootstrap({ baseUrl, defaultLocale, locales, route
5757
pageComponentTree
5858
}
5959
)
60-
const mountPoint = document.querySelector('main')
60+
const mountPoint = document.getElementById('__aleph')
6161
if (renderMode === 'ssr') {
6262
hydrate(rootEl, mountPoint)
6363
} else {

server/project.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ export class Project {
229229
...this._getPreloadScripts()
230230
],
231231
head: customLoading?.head || [],
232-
body: `<main>${customLoading?.body || ''}</main>`,
232+
body: `<div id="__aleph">${customLoading?.body || ''}</div>`,
233233
minify: !this.isDev
234234
})
235235
return html

0 commit comments

Comments
 (0)