Skip to content
Merged
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
3 changes: 2 additions & 1 deletion app/.well-known/farcaster.json/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export async function GET() {
return NextResponse.json(config);
} catch (error) {
console.error("Error generating metadata:", error);
return NextResponse.json({ error: error.message }, { status: 500 });
const errorMessage = error instanceof Error ? error.message : "Unknown error occurred";
return NextResponse.json({ error: errorMessage }, { status: 500 });
}
}
2 changes: 1 addition & 1 deletion components/CustomConnectButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import farcasterMiniApp from "@farcaster/miniapp-wagmi-connector";
import { useConnect, useAccount } from "wagmi";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";

export default function CustomConnectButton() {
const { connect } = useConnect();
Expand Down
2 changes: 1 addition & 1 deletion lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const CELO_TOKEN_MAP: {
* The base URL of the application.
* Used for generating absolute URLs for assets and API endpoints.
*/
export const APP_URL: string = process.env.NEXT_PUBLIC_URL! ?? "https://bitsave.io";
export const APP_URL: string = process.env.NEXT_PUBLIC_URL! ?? "https://bitsaveminiapp.netlify.app";

/**
* The name of the mini app as displayed to users.
Expand Down
Loading