Skip to content

adding different stack #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 17 additions & 10 deletions mobile-magic/apps/frontend/app/project/[projectId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,25 @@ import { K8S_ORCHESTRATOR_URL } from "@/config";
import ProjectWithInitRequest from "@/components/ProjectWithInitRequest";

interface Params {
params: Promise<{ projectId: string }>
params: Promise<{ projectId: string }>;
}

export default async function ProjectPage({ params }: Params) {
const projectId = (await params).projectId
const response = await axios.get(`${K8S_ORCHESTRATOR_URL}/worker/${projectId}`);
const { sessionUrl, previewUrl, workerUrl } = response.data;
const projectId = (await params).projectId;
console.log("k8s url: ", K8S_ORCHESTRATOR_URL);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove logs, indendation looks wrong

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i am working on it , its not final commit

console.log("projectId: ", projectId);
const response = await axios.get(
`${K8S_ORCHESTRATOR_URL}/worker/${projectId}`,
);
console.log("response from orchestrator worker : ", response);
const { sessionUrl, previewUrl, workerUrl } = response.data;

return <ProjectWithInitRequest
projectId={projectId}
sessionUrl={sessionUrl}
previewUrl={previewUrl}
workerUrl={workerUrl}
/>
return (
<ProjectWithInitRequest
projectId={projectId}
sessionUrl={sessionUrl}
previewUrl={previewUrl}
workerUrl={workerUrl}
/>
);
}
2 changes: 1 addition & 1 deletion mobile-magic/apps/frontend/components/ProjectsDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
DrawerTitle,
} from "@/components/ui/drawer";

import { SignedIn, useClerk, UserButton, useUser } from "@clerk/nextjs";
import { SignedIn, UserButton, useUser } from "@clerk/nextjs";
import { useEffect, useState } from "react";
import { useRouter } from "next/navigation";
import { MessageSquareIcon, SearchIcon, UmbrellaOff } from "lucide-react";
Expand Down
4 changes: 2 additions & 2 deletions mobile-magic/apps/k8s-orchestrator/config.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

export const DOMAIN = "cloud.antidevs.com";
// export const DOMAIN = "cloud.antidevs.com";
export const DOMAIN = "localhost";
Loading