Skip to content

Commit fdd9406

Browse files
chore: remove debug hub usage in case of production build
1 parent b06f1d5 commit fdd9406

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

templates/next/app/page.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ export default async function Home({
3030

3131
const frameMessage = await getFrameMessage(previousFrame.postBody, {
3232
// remove if you aren't using @frames.js/debugger or you just don't want to use the debugger hub
33-
hubHttpUrl: "http://localhost:3010/hub",
33+
...(process.env.NODE_ENV === "production"
34+
? {}
35+
: {
36+
hubHttpUrl: "http://localhost:3010/hub",
37+
}),
3438
});
3539

3640
if (frameMessage && !frameMessage?.isValid) {

0 commit comments

Comments
 (0)