Skip to content

Container service that uses Headless Chrome to render SPA's as HTML, built on NodeJs.

License

Notifications You must be signed in to change notification settings

npulidom/prerender

Repository files navigation

Prerender

Container service that uses Headless Chrome to render SPA's as HTML (Dynamic Rendering), built on NodeJs.

Docker hub image

Usage

# pull
docker pull npulidom/prerender
# run
docker run -p 8080:80 npulidom/prerender
# test
curl -i http://localhost:8080/?url=https://www.example.com

Env-vars

ALLOWED_DOMAINS: Allowed hosts (include “www.example.com” for health checks)
CACHE_MAXSIZE: Maximum number of items in the cache, default is 100
CACHE_TTL: Time to live for items in the cache, default is 60 seconds
PAGE_LOAD_TIMEOUT: Page load timeout
HEALTH_CHECK_URL: A custom health check URL to check prerender-browser render-status (optional)

Prerender plugins

Some plugins have been activated by default:

Prerender documentation

https://github.com/prerender/prerender

About

Container service that uses Headless Chrome to render SPA's as HTML, built on NodeJs.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published