The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
improve generateLander prompt to handle relative URLs
Steven Tey026aa8d88345
diff --git a/apps/web/lib/actions/partners/generate-lander.ts b/apps/web/lib/actions/partners/generate-lander.tsindex 64229fac4d..77a2bdd9d2 100644--- a/apps/web/lib/actions/partners/generate-lander.ts+++ b/apps/web/lib/actions/partners/generate-lander.ts@@ -108,6 +108,7 @@ export const generateLanderAction = authActionClient? `You ${landerData ? "could" : "may"} include an image block in the landing page, only using the OG image here: ${scrapeResult.metadata?.ogImage}. `: "") +`Do not add any file blocks. ` ++ `For image blocks, make sure the image URL is an absolute URL, not a relative URL (append the website URL to the image URL if it's a relative URL). ` +`If you have product pricing information, ${landerData ? "you could" : "you should"} include an earnings calculator block, using the highest non-enterprise tier for the product price. ` +`Markdown is supported in "text" blocks, but use it sparingly. ` +`Avoid using links. Relevant CTA links are already on the landing page. ` +