ApollosProject / apollos-embeds

Apollos React Embeds that can be used in Webflow and other third-party websites.
https://www.npmjs.com/package/@apollosproject/apollos-embeds
0 stars 0 forks source link

Nextjs // Micro Service Social Previews #198

Closed vinnyjth closed 8 months ago

vinnyjth commented 8 months ago

πŸ› Issue

Closes #195

✏️ Solution

Migrate to Next.js πŸ˜…

After much pondering and researching, I'm convinced this is the shortest jump to working meta tags outside of paying for a service like prerender.io. We need the meta tags to be sent over the wire and to be accessible without any JS execution required, and Next.js was a quick hop from our current implementation.

Some notes:

πŸ”¬ To Test

  1. Start the microservice with a env var like

    NEXT_PUBLIC_CHURCH_SLUG=apollos-demo
  2. Visit some microserviced pages http://localhost:4000/?id=UniversalContentItem-d7a75b1f-9dbb-4c80-b72a-07ae3d7b70eb

  3. Fire up ngrok and test using some social preview testing tools

πŸ“Έ Screenshots

CleanShot 2024-03-28 at 09 32 51@2x

CleanShot 2024-03-28 at 09 29 48@2x

vercel[bot] commented 8 months ago

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
apollos-micro-service βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Mar 28, 2024 1:42pm
apollos-web-embeds βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Mar 28, 2024 1:42pm
redreceipt commented 8 months ago

amazing. i'll review this soon