Replies: 1 comment 1 reply
-
Hey @njoguamos, thanks for posting this! By the way, check out |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While this package is suitable for the serverless environment, it can also work on self-hosted platforms such as Digital Ocean Droplets. At first, when I tried to run on self hosted solution platform you may get errors such as follows:
The following steps may help you avoid errors:
1. Install NodeJs
curl -s https://deb.nodesource.com/setup_16.x | sudo bash sudo apt-get install -y nodejs node -v
2. Install Puppeteer and Chrome depedencies
3. Install Google Chrome
This package used Google Chrome-specific binaries on Linux
next-api-og-image/src/index.ts
Lines 240 to 242 in 1e579a5
This assumes that you know how to serve NextJs on Nginx via reverse proxy.
You should be able to generate your og Images now.
Beta Was this translation helpful? Give feedback.
All reactions