-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
blog/generate-opengraph-images-using-playwright #48
Comments
This worked perfectly in dev! However, it looks like the api route is ~72mb and vercel only allow 50mb on free plans. Were you able to reduce the size somehow or are you not on the free plan? |
Saw this was already addressed in a previously closed issue / comment. Utterances is awesome! EDIT: Except for the fact that I can't close my own issues / comments haha |
Just wanted to point anyone reading this who wants to deploy to vercel to this thread: vercel/vercel#4739 Basically, if you have your api route under The current workaround is to simply move your api directory to |
@ndom91 but moving it to the root won't work locally, how do you solve that? |
Hmm, it works locally for me. What issues are you having? EDIT: You then need to use the EDIT 2: I ended up writing a little blog post about this whole experience btw if you're interested 馃槈 - https://ndo.dev/posts/link-screenshot |
@ndom91 Great post! Thanks for sharing. Cool site too! EDIT: I ended up creating a separate project for the screenshot generator just to avoid messing up the folder structure of my original project. |
Generate Open Graph images on-demand with Next.js on Vercel - Playwright Community 馃幁
Demonstration on how you can use Playwright to create thumbnails of your web pages (e.g. blog) as e.g. Twitter preview image (og:image) built with Next.js
https://playwright.tech/blog/generate-opengraph-images-using-playwright
The text was updated successfully, but these errors were encountered: