SSWConsulting / SSWConsulting/SSW.Website

🦙Tina - Add ISR for content changes

Open
#3,589 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
14
Forks
10
Avg merge
13h 51m
Merged PRs (30d)
38

Description

CC: @wicksipedia, @miichaelsmedley

The Pain

Changes made using Tina cannot be previewed (outside of the Tina editor). Until the branch has been re-deployed. This can result in confusion.

Solution

We should investigate using ISR so that static routes using Tina are rebuilt when data is updated in Tina Cloud

Option 1: Use on-demand webhooks to invalidate the cache after saving

Note: Tina may not have webhook support yes, discuss this with Wicksy/someone from the Tina team
https://vercel.com/templates/next.js/on-demand-incremental-static-regeneration
https://nextjs.org/docs/app/building-your-application/data-fetching/incremental-static-regeneration#on-demand-revalidation-with-revalidatepath

Option 2: Time based revalidation (not recommended)

https://nextjs.org/docs/app/building-your-application/data-fetching/incremental-static-regeneration#time-based-revalidation

Image

Figure: outdated page being shown while staging branch rebuilds

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Tina Cloud save flow and the site's Next.js static route generation, then review the linked Next.js ISR and revalidatePath documentation. Confirm whether Tina supports on-demand webhooks and choose an invalidation approach; done means Tina content changes appear on static routes without a branch redeploy.

Written by the indexing model from the issue text.

Assessment

Tech stack
nextjs
Domain
content, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.