Skip to content

Commit

Permalink
Add hub
Browse files Browse the repository at this point in the history
  • Loading branch information
Prajjawalk committed Apr 3, 2024
1 parent 6b0b4ce commit dd6be72
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions packages/nextjs/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Link from "next/link";
import { DEFAULT_DEBUGGER_HUB_URL, createDebugUrl } from "./debug";
// import { DEFAULT_DEBUGGER_HUB_URL } from "./debug";
import { RandomNumberRequestStateValue } from "./slow-fetch/types";
import { currentURL } from "./utils";
// import { currentURL } from "./utils";
import { kv } from "@vercel/kv";
import {
FrameButton,
Expand All @@ -20,11 +19,11 @@ const initialState: State = {} as const;

// This is a react server component only
export default async function Home({ searchParams }: NextServerPageProps) {
const url = currentURL("/");
// const url = currentURL("/");
const previousFrame = getPreviousFrame<State>(searchParams);

const frameMessage = await getFrameMessage(previousFrame.postBody, {
hubHttpUrl: DEFAULT_DEBUGGER_HUB_URL,
hubHttpUrl: process.env.PINATA_HUB,
});

if (frameMessage && !frameMessage?.isValid) {
Expand Down Expand Up @@ -155,10 +154,7 @@ export default async function Home({ searchParams }: NextServerPageProps) {
// then, when done, return next frame
return (
<div className="p-4">
frames.js starter kit with slow requests.{" "}
<Link href={createDebugUrl(url)} className="underline">
Debug
</Link>
Livepeer video to NFT frame.
{frame}
</div>
);
Expand Down

0 comments on commit dd6be72

Please sign in to comment.