mirror of
https://github.com/Nezumi-2711/next-gdrive-index.git
synced 2026-09-22 13:38:38 +00:00
test root page without data
This commit is contained in:
+14
-5
@@ -1,3 +1,5 @@
|
||||
import { z } from "zod";
|
||||
import { Schema_File } from "~/schema";
|
||||
import { cn } from "~/utils";
|
||||
|
||||
import { Card, CardContent, CardHeader, CardTitle } from "~/components/ui/card";
|
||||
@@ -7,16 +9,23 @@ import FileBrowser from "./@explorer";
|
||||
import Header from "./@header";
|
||||
import HeaderButton from "./@header.button";
|
||||
import Markdown from "./@markdown";
|
||||
import { GetFiles, GetReadme } from "./actions";
|
||||
|
||||
export const revalidate = 300;
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
export default async function RootPage() {
|
||||
const [data, readme] = await Promise.all([
|
||||
GetFiles({}),
|
||||
GetReadme(undefined),
|
||||
]);
|
||||
const data: {
|
||||
files: z.infer<typeof Schema_File>[];
|
||||
nextPageToken: string | undefined;
|
||||
} = {
|
||||
files: [],
|
||||
nextPageToken: undefined,
|
||||
};
|
||||
const readme = "";
|
||||
// const [data, readme] = await Promise.all([
|
||||
// GetFiles({}),
|
||||
// GetReadme(undefined),
|
||||
// ]);
|
||||
|
||||
return (
|
||||
<div className={cn("h-fit w-full", "flex flex-col gap-3")}>
|
||||
|
||||
Reference in New Issue
Block a user