refactor: move workflow to /workflow

This commit is contained in:
BennyKok
2023-12-14 22:50:28 +08:00
parent 7e05fae7b3
commit c419e10827
6 changed files with 33 additions and 24 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import { NextResponse, type NextRequest } from "next/server";
export async function GET(request: NextRequest) {
const file = new URL(request.url).searchParams.get("file");
console.log(file);
console.log(`${process.env.SPACES_ENDPOINT}/comfyui-deploy/${file}`);
return NextResponse.redirect(
`${process.env.SPACES_ENDPOINT}/comfyui-deploy/${file}`
);
@@ -1,5 +1,5 @@
import { DeploymentsTable, RunsTable } from "../../components/RunsTable";
import { findFirstTableWithVersion } from "../../server/findFirstTableWithVersion";
import { DeploymentsTable, RunsTable } from "../../../components/RunsTable";
import { findFirstTableWithVersion } from "../../../server/findFirstTableWithVersion";
import { MachinesWSMain } from "@/components/MachinesWS";
import {
CreateDeploymentButton,
@@ -49,7 +49,7 @@ export default async function Page({
<MachinesWSMain machines={machines} />
</CardContent>
</Card>
<Card className="w-full ">
<Card className="w-full h-fit">
<CardHeader>
<CardTitle>Deployments</CardTitle>
</CardHeader>
@@ -60,7 +60,7 @@ export default async function Page({
</Card>
</div>
<Card className="w-full ">
<Card className="w-full h-fit">
<CardHeader>
<CardTitle>Run</CardTitle>
</CardHeader>