easycredit prerender (PHP demo)

Node prerender service: reachable (target: http://127.0.0.1:4711)

Submit the form to fetch SSR HTML, then the hydration preview and script load appear below the diagnostics.


How to access

  1. npm run build (needs dist/ for the client bundle that hydrates)
  2. Terminal A — Node prerender: npm run prerender:serve (127.0.0.1:4711)
  3. Terminal B — PHP + router.php: npm run prerender:php
  4. Open http://127.0.0.1:8088/, submit the form, check the blue box for hydrated components
  5. Or run everything in one container: docker compose up --build (see Dockerfile + docker-compose.yml) behind Traefik on your configured host — or add -f docker-compose.direct.yml to bind 8088 on localhost without Traefik.

Override Node URL: EASYCREDIT_PRERENDER_URL=…. Custom PHP port: php -S 127.0.0.1:8090 -t scripts/prerender-server scripts/prerender-server/router.php