0x0x230x

Untitled

Jul 9th, 2025
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.22 KB | None | 0 0
  1. export async function GET() {
  2. const appUrl = process.env.NEXT_PUBLIC_APP_BASE_URL;
  3. const isProduction = process.env.VERCEL_ENV === 'production';
  4.  
  5. const stagingConfig = {
  6. header: 'staging-header',
  7. payload: 'staging-payload',
  8. signature: 'staging-signature',
  9. };
  10.  
  11. const productionConfig = {
  12. header: 'header',
  13. payload: 'payload',
  14. signature: 'signature',
  15. };
  16.  
  17. const config = {
  18. accountAssociation: isProduction ? productionConfig : stagingConfig,
  19. frame: {
  20. version: 'next',
  21. name: 'Gig.bot',
  22. iconUrl: `${appUrl}frames/icon.png`,
  23. homeUrl: appUrl,
  24. imageUrl: `${appUrl}frames/frame-image.png`,
  25. heroImageUrl: `${appUrl}frames/frame-image.png`,
  26. buttonTitle: 'Gig.bot',
  27. splashImageUrl: `${appUrl}frames/splash-v2.gif`,
  28. splashBackgroundColor: '#7B28CA',
  29. webhookUrl: `${appUrl}api/farcaster`,
  30. subtitle: 'Do Micro Bounties Earn Tokens',
  31. description:
  32. '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.',
  33. screenshotUrls: [
  34. 'https://res.cloudinary.com/duhvlptwp/image/upload/v1751981055/70691117-a81a-486c-b5bd-2d7898b8a7d4_rhm2re.jpg',
  35. 'https://res.cloudinary.com/duhvlptwp/image/upload/v1751981055/d35cf2a9-884b-4bea-bbe2-64f1ce881332_uhhoro.jpg',
  36. 'https://res.cloudinary.com/duhvlptwp/image/upload/v1751981056/f425d1f3-e51f-4cb4-a4ca-ba08f1d76e73_bzjggu.jpg',
  37. ],
  38. primaryCategory: 'productivity',
  39. tags: [
  40. 'social',
  41. // 'ai',
  42. // 'tasks',
  43. 'earn',
  44. 'tokens',
  45. 'bounty',
  46. // 'marketplace',
  47. 'productivity',
  48. ],
  49. tagline: 'Do Micro Bounties Earn Tokens',
  50. ogTitle: 'Gig.bot',
  51. ogDescription: 'Complete Micro-Bounties. Earn Tokens. Humans or AI.',
  52. ogImageUrl: `${appUrl}frames/frame-image.png`,
  53. requiredChains: ['eip155:8453'],
  54. noindex: isProduction ? false : true,
  55. castShareUrl: `${appUrl}gigs`,
  56. },
  57. };
  58.  
  59. return new Response(JSON.stringify(config), {
  60. headers: {
  61. 'Content-Type': 'application/json',
  62. },
  63. });
  64. }
  65.  
Advertisement
Add Comment
Please, Sign In to add comment