Commit Graph

9 Commits

Author SHA1 Message Date
Zack Tanner c03aaee550 tests: disable flaky deployment test while investigating upstream (#83705)
This test has started failing when deployed to hosted environments, but
it consistently is passing in `next start` tests.

We could retry the on-demand revalidation and the test will pass, but we
lose the value in the test.

This instead temporarily disables it until it can be investigated
upstream.

[slack
x-ref](https://vercel.slack.com/archives/C04KC8A53T7/p1757108995256419)
2025-09-11 19:49:30 -07:00
Max Proske 9fce9964b6 Remove unstable_revalidate (#43119)
Reverts https://github.com/vercel/next.js/pull/38070

I stumbled upon @ijjk's TODO to remove the deprecated
`unstable_revalidate` renaming error and e2e test after v12.2.

```tsx
// TODO: remove in next minor (current v12.2)
```

I also removed the deprecated function stub, since it probably shouldn't
exist if there's no error, e2e test, and doesn't match the new
`revalidate` function signature anyways.

<img width="675" alt="image"
src="https://user-images.githubusercontent.com/14317828/202842660-be9977e2-252c-4ccf-84fc-e0c00bf25e05.png">
2022-11-19 15:54:19 -08:00
JJ Kasper d315ee1786 Ensure On-Demand revalidate does not consider preview cookie (#39313) 2022-08-04 08:23:54 -05:00
JJ Kasper 40cf3ce63a Add error for renaming of unstable_revalidate (#38070)
* Add error for renaming of unstable_revalidate

* update test

* run test for dev too
2022-06-27 14:28:41 -05:00
Lee Robinson 8ce2790026 On-demand ISR updates. (#37955)
* On-demand ISR updates.

* Apply suggestions from code review

* lint-fix

* Update docs/basic-features/data-fetching/incremental-static-regeneration.md

Co-authored-by: JJ Kasper <jj@jjsweb.site>
2022-06-24 16:59:23 -05:00
JJ Kasper 74dead2489 Add experimental onlyGenereated flag for unstable_revalidate (#36108)
* Add experimental ifGenereated flag for unstable_revalidate

* Apply suggestions from code review

Co-authored-by: Steven <steven@ceriously.com>

* update ifGenerated -> onlyGenerated

* rename const as well

Co-authored-by: Steven <steven@ceriously.com>
2022-04-13 11:56:58 -05:00
JJ Kasper 130f8645a2 Update to leverage response-cache for image-optimizer (#34075)
This updates to leverage our `response-cache` used for ISR for our `image-optimizer` as well. 

Co-authored-by: Steven <steven@ceriously.com>
2022-02-08 18:46:59 -05:00
JJ Kasper 7cd9de34da Add api-utils helper for testing (#34078) 2022-02-07 21:50:23 -06:00
JJ Kasper 8e52126ea6 Migrate prerender tests to new set-up (#29245) 2021-09-21 16:21:05 +02:00