0x0x230x

Untitled

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