You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-6Lines changed: 21 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,16 +104,31 @@ When a URL is submitted via the `/generate` endpoint:
104
104
git clone <repository-url>
105
105
cd prerender-url-shortener
106
106
```
107
-
2.**Create a `.env` file** in the project root with your configuration. See `.env.example` for a template (if one exists, otherwise define the following):
107
+
2.**Create a `.env` file** in the project root with your configuration. See `.env.example` for a template (if one exists). Current configuration options:
META_WAIT_TIMEOUT_SECONDS="20" # Optional, default 20s max wait for meta stabilization
124
+
META_STABLE_CONSECUTIVE_CHECKS="3" # Optional, default 3 equal reads for stability
125
+
PRERENDER_READY_MARKER="data-prerender-ready=\"true\"" # Optional marker that, if present in HTML, ends waiting early
115
126
```
116
127
128
+
Notes:
129
+
- PRERENDER_READY_MARKER: leave it as default or set to an empty value to disable marker-based early exit. The renderer still returns once og:image stabilizes or after a brief loop if no og:image is present.
130
+
- Without a ready marker: behavior is generic — waits for load + network idle; then only loops for og:image stabilization if an og:image exists.
0 commit comments