Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

refactor: shift warnings to under the "Generate a new JWT secret" panel

Beng Eu64e4965ff360
diff --git a/studio/pages/project/[ref]/settings/api.tsx b/studio/pages/project/[ref]/settings/api.tsx
index f77150d4b67..dfe96adce81 100644
--- a/studio/pages/project/[ref]/settings/api.tsx
+++ b/studio/pages/project/[ref]/settings/api.tsx
@@ -317,26 +317,26 @@ const ServiceList: FC<any> = ({ projectRef }) => {
)}
</div>
</div>
- {isJwtSecretUpdateFailed ? (
- <Alert withIcon variant="warning" title="Failed to update JWT secret">
- Please try again. If the failures persist, please contact Supabase
- support with the following details: <br />
- Change tracking ID: {changeTrackingId} <br />
- Error message: {jwtSecretUpdateErrorMessage}
- </Alert>
- ) : (
- <Alert
- withIcon
- variant="warning"
- title="This will invalidate all existing API keys!"
- >
- Your project will also be restarted during this process, which will
- terminate any existing connections.
- </Alert>
- )}
</div>
)}
</div>
+ {isJwtSecretUpdateFailed ? (
+ <Alert withIcon variant="warning" title="Failed to update JWT secret">
+ Please try again. If the failures persist, please contact Supabase support
+ with the following details: <br />
+ Change tracking ID: {changeTrackingId} <br />
+ Error message: {jwtSecretUpdateErrorMessage}
+ </Alert>
+ ) : (
+ <Alert
+ withIcon
+ variant="warning"
+ title="This will invalidate all existing API keys!"
+ >
+ Your project will also be restarted during this process, which will terminate
+ any existing connections.
+ </Alert>
+ )}
</div>
</Flag>
</Panel.Content>