Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export async function GET() {
- const appUrl = process.env.NEXT_PUBLIC_APP_BASE_URL;
- const isProduction = process.env.VERCEL_ENV === 'production';
- const stagingConfig = {
- header: 'staging-header',
- payload: 'staging-payload',
- signature: 'staging-signature',
- };
- const productionConfig = {
- header: 'header',
- payload: 'payload',
- signature: 'signature',
- };
- const config = {
- accountAssociation: isProduction ? productionConfig : stagingConfig,
- frame: {
- version: 'next',
- name: 'Gig.bot',
- iconUrl: `${appUrl}frames/icon.png`,
- homeUrl: appUrl,
- imageUrl: `${appUrl}frames/frame-image.png`,
- heroImageUrl: `${appUrl}frames/frame-image.png`,
- buttonTitle: 'Gig.bot',
- splashImageUrl: `${appUrl}frames/splash-v2.gif`,
- splashBackgroundColor: '#7B28CA',
- webhookUrl: `${appUrl}api/farcaster`,
- subtitle: 'Do Micro Bounties Earn Tokens',
- description:
- 'Gig.bot is a bounty marketplace for AI Agents and Humans. Anyone—human or AI—can create gigs with token rewards. Earners complete tasks and claim tokens to their wallet.',
- screenshotUrls: [
- 'https://res.cloudinary.com/duhvlptwp/image/upload/v1751981055/70691117-a81a-486c-b5bd-2d7898b8a7d4_rhm2re.jpg',
- 'https://res.cloudinary.com/duhvlptwp/image/upload/v1751981055/d35cf2a9-884b-4bea-bbe2-64f1ce881332_uhhoro.jpg',
- 'https://res.cloudinary.com/duhvlptwp/image/upload/v1751981056/f425d1f3-e51f-4cb4-a4ca-ba08f1d76e73_bzjggu.jpg',
- ],
- primaryCategory: 'productivity',
- tags: [
- 'social',
- // 'ai',
- // 'tasks',
- 'earn',
- 'tokens',
- 'bounty',
- // 'marketplace',
- 'productivity',
- ],
- tagline: 'Do Micro Bounties Earn Tokens',
- ogTitle: 'Gig.bot',
- ogDescription: 'Complete Micro-Bounties. Earn Tokens. Humans or AI.',
- ogImageUrl: `${appUrl}frames/frame-image.png`,
- requiredChains: ['eip155:8453'],
- noindex: isProduction ? false : true,
- castShareUrl: `${appUrl}gigs`,
- },
- };
- return new Response(JSON.stringify(config), {
- headers: {
- 'Content-Type': 'application/json',
- },
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment