Skip to content

Latest commit

 

History

History

ssr

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

SSR Example

Showcases server render output, snapshot transfer, and browser activation without an implicit startup fetch.

Key files:

  • index.html provides the #app activation root.
  • main.js builds a shared app definition, renders a server response, applies the HTML, reads the snapshot, and starts the browser runtime.

Start from the repo root:

python3 -m http.server 4173

Open http://127.0.0.1:4173/examples/ssr/.

Imperative DOM exception

This static SSR adapter simulates the server-to-browser handoff in one page. It inserts the complete server render into the activation host; the snapshot itself is consumed through the public readSnapshot(document) API before framework startup. Application feature code begins after createApp(...).start() and remains registry driven.

Verify:

pnpm run examples:check