fix: addressed cloudflare pages error 304

This commit is contained in:
Sheen Capadngan
2025-01-14 23:18:38 +08:00
parent 2187c7588c
commit 71af662998
2 changed files with 31 additions and 22 deletions
@@ -192,15 +192,17 @@ export const CloudflarePagesConfigurePage = () => {
))}
</Select>
</FormControl>
<div className="mb-[2.36rem] ml-1 px-6">
<Switch
id="redeploy-cloudflare-pages"
onCheckedChange={(isChecked: boolean) => setShouldAutoRedeploy(isChecked)}
isChecked={shouldAutoRedeploy}
>
Auto-redeploy service upon secret change
</Switch>
</div>
{targetEnvironment === "production" && (
<div className="mb-[2.36rem] ml-1 px-6">
<Switch
id="redeploy-cloudflare-pages"
onCheckedChange={(isChecked: boolean) => setShouldAutoRedeploy(isChecked)}
isChecked={shouldAutoRedeploy}
>
Auto-redeploy service upon secret change
</Switch>
</div>
)}
<Button
onClick={handleButtonClick}
color="mineshaft"