Make auth methods page use static params

This commit is contained in:
Konstantin Wohlwend 2025-10-21 00:04:07 -07:00
parent ac274010f4
commit ed5a988d43
4 changed files with 13 additions and 4 deletions

View File

@ -4,6 +4,13 @@ export const metadata = {
title: "Auth Settings",
};
export const generateStaticParams = async () => {
return [];
};
export const dynamicParams = true;
export default function Page() {
return (
<PageClient />

View File

@ -9,7 +9,7 @@ type Params = {
projectId: string,
};
export default async function Page({ params }: { params: Promise<Params> }) {
export default async function Page() {
return (
<PageClient />
);

View File

@ -1,11 +1,13 @@
"use client";
import { SiteLoadingIndicator } from "@/components/site-loading-indicator";
import { UrlPrefetcher } from "@/lib/prefetch/url-prefetcher";
import { Suspense } from "react";
import SidebarLayout from "./sidebar-layout";
import { AdminAppProvider } from "./use-admin-app";
export default async function Layout(
props: { children: React.ReactNode, modal?: React.ReactNode, params: Promise<{ projectId: string }> }
export default function Layout(
props: { children: React.ReactNode, modal?: React.ReactNode }
) {
return (
<AdminAppProvider>

View File

@ -8,7 +8,7 @@ type Params = {
projectId: string,
};
export default async function Page({ params }: { params: Promise<Params> }) {
export default async function Page() {
return (
<PageClient />
);