perf: Fetch data server-side for Api Keys page (#20677)
* server-side fetching for api keys page * refactor billing page * fix
This commit is contained in:
1 parent
e82cc328d3
commit
c00e8cfa54
8 files changed
+67
-40
No files matched your search
@@ -20,6 +20,7 @@ export const POST_METHODS_ALLOWED_API_ROUTES = ["/api/auth/signup", "/api/trpc/"
|
||||
export const POST_METHODS_ALLOWED_APP_ROUTES = [
|
||||
"/settings/my-account/general",
|
||||
"/settings/developer/webhooks",
|
||||
"/settings/developer/api-keys",
|
||||
];
|
||||
export function checkPostMethod(req: NextRequest) {
|
||||
const pathname = req.nextUrl.pathname;
|
||||
@@ -192,6 +193,7 @@ export const config = {
|
||||
// Routes allowed for POST method (matching `POST_METHODS_ALLOWED_APP_ROUTES` array)
|
||||
"/settings/my-account/general",
|
||||
"/settings/developer/webhooks",
|
||||
"/settings/developer/api-keys",
|
||||
],
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user