fix(admin): fresh SSR reads, atomic user delete + sanitized errors, cookie-rotation in middleware, no-store on admin APIs
This commit is contained in:
@@ -2,6 +2,7 @@ import { getAuditList } from '@/lib/admin/list';
|
||||
import { AuditTable } from './audit-table';
|
||||
|
||||
export const dynamic = 'force-dynamic';
|
||||
export const revalidate = 0;
|
||||
|
||||
const PER_PAGE = 50;
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ import { getSupabaseAdmin } from '@/lib/supabase/admin';
|
||||
import { formatBytes, formatDate } from '@/lib/format';
|
||||
|
||||
export const dynamic = 'force-dynamic';
|
||||
export const revalidate = 0;
|
||||
|
||||
type OverQuotaRow = {
|
||||
user_id: string;
|
||||
|
||||
@@ -2,6 +2,7 @@ import { getTunnelsList } from '@/lib/admin/list';
|
||||
import { TunnelsTable } from './tunnels-table';
|
||||
|
||||
export const dynamic = 'force-dynamic';
|
||||
export const revalidate = 0;
|
||||
|
||||
const PER_PAGE = 25;
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ import { formatBytes, formatDate } from '@/lib/format';
|
||||
import { UserActions } from './user-actions';
|
||||
|
||||
export const dynamic = 'force-dynamic';
|
||||
export const revalidate = 0;
|
||||
|
||||
type TunnelRow = {
|
||||
subdomain: string;
|
||||
|
||||
@@ -2,6 +2,7 @@ import { getUsersList } from '@/lib/admin/list';
|
||||
import { UsersTable } from './users-table';
|
||||
|
||||
export const dynamic = 'force-dynamic';
|
||||
export const revalidate = 0;
|
||||
|
||||
const PER_PAGE = 25;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user