Comments (5)
👋 Hey @bmstefanski @jfobrien29! There was a critical bug related to detecting NODE_ENV
properly in 2.1.0 and it is fixed in 2.1.1. Its available on npm but I haven't pushed the changes to the repository and made the release on GitHub yet. Cheers
from next-api-og-image.
Appreciate the help! I downgraded to 2.0.0 and it works great. I've been trying to generate pngs using vercel serverless functions for the last 24hrs and this package is exactly what I needed.
I'll poke around and see how I can help contribute.
from next-api-og-image.
Thats super cool @jfobrien29 🚀 In the next days (probably tomorrow) I will create some issues related to development of the library then you will be able to pick something if you decide to contribute 😇
I will also make sure that everything is stable since https://github.com/neg4n/next-api-og-image/releases/tag/2.1.0
Answering the original question by @bmstefanski - Thats good idea to deploy example project so everyone can see the library is working. I will do that in my free time 😎
from next-api-og-image.
Hey @neg4n appreciate you building this! I'm having trouble deploying this as well and have been unable to so far. Do you have any suggestions on how to make this run deployed?
It seems puppeteer can't be run on vercel functions as far as I've experimented. But works great locally!
from next-api-og-image.
@jfobrien29 hmm It should be possible, there's at least one repo (that is using this) deployed on Vercel
Preview: https://og.thcl.dev/api/general?templateTitle=Page%20Name&siteName=Your%20Site%20Name&description=Lorem%20ipsum&theme=light
Github: https://github.com/theodorusclarence/og/blob/main/src/pages/api/general.ts
But it has an older version, so maybe something is not working correctly 🤔 @neg4n
from next-api-og-image.
Related Issues (20)
- Unit tests
- Contributing guidelines HOT 1
- [Bug] Could not find expected browser (chrome) locally after `next start` HOT 13
- Vercel: Exceeding size limits (50mb) for Serverless Function api/og HOT 3
- Change image resolution / page viewport HOT 3
- Updates on this library? width and height not working HOT 2
- Suggestion: move chrome-aws-lambda to peer dependency HOT 6
- Suggestion: remove patch-package from dependencies HOT 1
- Simplify source code
- using react templates outputs a string, not an image HOT 1
- Failed to launch the browser process! HOT 5
- Error: Protocol error (Page.captureScreenshot): Target closed.
- Wait for webfont load? HOT 2
- Failed to launch the browser process HOT 1
- Error: Could not find expected browser (chrome) locally. Run `npm install` to download the correct Chromium revision (901912). HOT 8
- Failed to launch browser process HOT 3
- Add option to override default chrome executable and arguments HOT 2
- New @vercel/og library HOT 1
- Replace chrome-aws-lambda with @sparticuz/chromium because of lacking node 16 support HOT 2
- Error 500 & Content Blocker Issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from next-api-og-image.