mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
Make auth methods page use static params
This commit is contained in:
parent
ac274010f4
commit
ed5a988d43
@ -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 />
|
||||
|
||||
@ -9,7 +9,7 @@ type Params = {
|
||||
projectId: string,
|
||||
};
|
||||
|
||||
export default async function Page({ params }: { params: Promise<Params> }) {
|
||||
export default async function Page() {
|
||||
return (
|
||||
<PageClient />
|
||||
);
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -8,7 +8,7 @@ type Params = {
|
||||
projectId: string,
|
||||
};
|
||||
|
||||
export default async function Page({ params }: { params: Promise<Params> }) {
|
||||
export default async function Page() {
|
||||
return (
|
||||
<PageClient />
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user