Comments (2)
Work around for this is to explicitly set the domain on your images:
export const metadata = {
metadataBase: new URL('https://acme.com'),
alternates: {
canonical: '/',
languages: {
'en-US': '/en-US',
'de-DE': '/de-DE',
},
},
openGraph: {
images: 'https://acme.com/og-image.png',
},
}
from next.js.
+1 encountered the same issue here.
specifying metadataBase
does not prefix og + twitter image url.
this makes the documentation here factually incorrect.
![image](https://private-user-images.githubusercontent.com/58854510/353303511-5ee4c246-309b-4f98-a9cc-5d6726ba37ec.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM5MjgzNDksIm5iZiI6MTcyMzkyODA0OSwicGF0aCI6Ii81ODg1NDUxMC8zNTMzMDM1MTEtNWVlNGMyNDYtMzA5Yi00Zjk4LWE5Y2MtNWQ2NzI2YmEzN2VjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE3VDIwNTQwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWViODMyMmViNWVmNzMyODNkMTk1NTJhMjFmOTQ3ZTdmMDU2YjcxNzA4YTNjYWM4YjY5YTg2YWY4MThiZGU3YjcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.eEyRyDs8jtHag3GIvqRjfxRu26VrmpYRY7uZ__7th_w)
from next.js.
Related Issues (20)
- Next.js downloads from fonts.googleapis.com during build HOT 1
- Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node HOT 1
- Can't use Intercepting and Parallel routes in root level HOT 1
- Error: You cannot use both an required and optional catch-all route
- Error: You cannot use both an required and optional catch-all route
- Incorrect caching
- Docs: Missing custom Partytown configuration for `Script` with `strategy="worker"` HOT 3
- Endless issues of Error: Cannot find module '....\.next\server\vendor-chunks\lib\worker.js'
- Conditional building pages with export: output is not supported
- Update eslint-config-next @typescript-eslint/typescript-estree version to support Typescript 5.5 HOT 1
- Next.js bundles libraries only used in Server Components into the Client Bundle Chunks
- [turbo] an unexpected Turbopack error occured HOT 3
- Why the response data is so big in browser when I use the server action with cookies().set or cookies().delete or etc that modify the cookie HOT 2
- NextResponse throws error when http request status code is 204 HOT 1
- BUG: incorrect url encoding in `<link rel="preload">` for prioritized images
- `next/font` interferes with header links from middleware.
- Can't use bcrypt in middleware HOT 8
- It hasn't been resolved for several months. accesstoken reissue issue
- Error and reload during HMR with MUI HOT 1
- Error and reload during HMR with MUI
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.js.