Skip to content

Commit

Permalink
ensure page is dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
ztanner committed Feb 5, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 449791f commit 63bb460
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -98,7 +98,6 @@ export async function fetchServerResponse(
}
}

console.trace('fetching', fetchUrl.toString())
// Add unique cache query to avoid caching conflicts on CDN which don't respect to Vary header
fetchUrl.searchParams.set(NEXT_RSC_UNION_QUERY, uniqueCacheQuery)

Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import React from 'react'

// ensure this page is dynamically rendered so we always trigger a loading state
export const dynamic = 'force-dynamic'

export default function page() {
return <div id="page-content">Content</div>
}

0 comments on commit 63bb460

Please sign in to comment.