feat: Add a toast to refresh the page if there's a new version of Studio available (#36323)

* Initial work.

* Add missing import.

* Minor fixes.

* Minor fixes.

* Add a feature flag for the refresh toast.

* Add a commit for testing. Revert before merging.

* Remove header caching for testing.

* Tiny lint

* Fix

* One more

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
This commit is contained in:
Ivan Vasilov
2025-07-28 11:51:00 +02:00
committed by GitHub
parent dfa0052357
commit 1bc28c7f85
6 changed files with 152 additions and 2 deletions

View File

@@ -102,7 +102,7 @@
"AI_PRO_MODEL",
"AI_NORMAL_MODEL"
],
"passThroughEnv": ["CURRENT_CLI_VERSION"],
"passThroughEnv": ["CURRENT_CLI_VERSION", "VERCEL_GIT_COMMIT_SHA"],
"outputs": [".next/**", "!.next/cache/**"]
},
"www#build": {