mirror of
https://github.com/yusufipk/RepoHub.git
synced 2026-09-11 18:46:07 +00:00
fix: ensure support status API is always dynamic by disabling caching
This commit is contained in:
@@ -17,7 +17,7 @@ export function Header() {
|
||||
useEffect(() => {
|
||||
const checkCryptomusStatus = async () => {
|
||||
try {
|
||||
const response = await fetch('/api/support/status')
|
||||
const response = await fetch('/api/support/status', { cache: 'no-store' })
|
||||
const data = await response.json()
|
||||
setCryptomusEnabled(data.cryptomus_enabled)
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user