mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
Merge dev into update-oauth-docs
This commit is contained in:
commit
401bfa7ecf
@ -1,14 +1,12 @@
|
||||
import { ALL_APPS, AppId } from "@stackframe/stack-shared/dist/apps/apps-config";
|
||||
import { notFound } from "next/navigation";
|
||||
import AppDetailsModalPageClient from "./page-client";
|
||||
|
||||
export const generateStaticParams = async () => {
|
||||
return Object.keys(ALL_APPS).map(appId => ({ appId }));
|
||||
};
|
||||
|
||||
export const dynamicParams = false;
|
||||
|
||||
export default async function AppDetailsModalPage({ params }: { params: Promise<{ appId: AppId }> }) {
|
||||
const appId = (await params).appId;
|
||||
if (!(appId in ALL_APPS)) {
|
||||
return notFound();
|
||||
}
|
||||
|
||||
return (
|
||||
<AppDetailsModalPageClient appId={appId} />
|
||||
|
||||
@ -1,14 +1,12 @@
|
||||
import { ALL_APPS, AppId } from "@stackframe/stack-shared/dist/apps/apps-config";
|
||||
import { notFound } from "next/navigation";
|
||||
import AppDetailsPageClient from "./page-client";
|
||||
|
||||
export const generateStaticParams = async () => {
|
||||
return Object.keys(ALL_APPS).map(appId => ({ appId }));
|
||||
};
|
||||
|
||||
export const dynamicParams = false;
|
||||
|
||||
export default async function AppDetailsPage({ params }: { params: Promise<{ appId: AppId }> }) {
|
||||
const appId = (await params).appId;
|
||||
if (!(appId in ALL_APPS)) {
|
||||
return notFound();
|
||||
}
|
||||
|
||||
return (
|
||||
<AppDetailsPageClient appId={appId} />
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 318 B |
Loading…
Reference in New Issue
Block a user