We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efdb54d commit 33dead3Copy full SHA for 33dead3
server/serverside_render.ts
@@ -19,8 +19,8 @@ export async function renderHtmlPage(
19
): Promise<Response> {
20
let html = "";
21
let lastModified = utcDateString(Date.now());
22
- if (!options.auth) {
23
- // Only attempt server-side rendering when this site is not protected by auth
+ if (!options.auth && options.readOnly) {
+ // Only attempt server-side rendering when this site is not protected by auth and running in read-only mode
24
if (!looksLikePathWithExtension(pageName)) {
25
try {
26
const { data, meta } = await spacePrimitives.readFile(
0 commit comments