Comments (6)
I have solved this by moving the og API from app/api/og/route.ts to pages/api/og.ts. This seemed the easiest and most stable solution to me
from taxonomy.
Change the import to:
import { ImageResponse } from "next/og"
from taxonomy.
Same problem here. Any solution so far?
from taxonomy.
Is there any other solutions so far?
from taxonomy.
I have solved this by moving the og API from app/api/og/route.ts to pages/api/og.ts. This seemed the easiest and most stable solution to me
This worked for me after cracking my head around for days. There isn't any solution around on why Next 14 does not support ImageResponse as a response in an api route under the app router.
from taxonomy.
I also tried the opengraph-image.tsx method but there isn't any way to pass in any parameters other than only using those from the url.
https://nextjs.org/docs/app/building-your-application/optimizing/metadata#dynamic-image-generation
from taxonomy.
Related Issues (20)
- [bug] post is even being edited without input changes HOT 1
- [feedback] tab key is not preferable to use for keyboard functions
- [feature] Containerize with docker for easier installing and testing HOT 1
- SEO Optimization
- The toast's close button is colliding with the edge of its container. HOT 2
- Unable to resolve dependency tree after npm install HOT 2
- Handle errors when you create a post with title lesser than 3 characters HOT 1
- Clarification on Copyright and License Usage for Open Source Templates
- The theme- toggle button shoud be in navbar so easier access
- Bug: 'Ctrl+K' doesn't work in Documentation page. HOT 2
- Error when running "pnpm dev" HOT 1
- Does anybody got this error too? HOT 2
- Streamline Berachain function navigation request
- Revolutionizing Taxonomy: Our Forking Adventure
- Demo: Broken HOT 4
- Bump to latest version of Next JS?
- Content Layer page does not exist HOT 3
- Add the landingpage page
- Suitable Way of Displaying Toast from Data Table Row Action HOT 1
- Add a twitter logo after 'follow along on Twitter' in home page
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 taxonomy.