initial commit
This commit is contained in:
20
app/publish/page.tsx
Normal file
20
app/publish/page.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
import PublishPanel from "@/components/PublishPanel";
|
||||
import { gitStatus } from "@/lib/git";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
export default async function PublishPage() {
|
||||
const status = await gitStatus();
|
||||
const config = {
|
||||
push: (process.env.GIT_PUSH ?? "true").toLowerCase() !== "false",
|
||||
pushAuth: process.env.GIT_PUSH_TOKEN ? "token" : "git default credentials",
|
||||
deploy: Boolean(process.env.DEPLOY_URL && process.env.DEPLOY_TRIGGER_SECRET),
|
||||
deployUrl: process.env.DEPLOY_URL ?? null,
|
||||
};
|
||||
return (
|
||||
<main>
|
||||
<h1>Publish</h1>
|
||||
<PublishPanel status={status} config={config} />
|
||||
</main>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user