Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot add dynamic application/json+oembed using app router #70004

Open
Prushka opened this issue Sep 12, 2024 · 0 comments
Open

Cannot add dynamic application/json+oembed using app router #70004

Prushka opened this issue Sep 12, 2024 · 0 comments
Labels
bug Issue was opened via the bug report template. Metadata Related to Next.js' Metadata API.

Comments

@Prushka
Copy link

Prushka commented Sep 12, 2024

Link to the code that reproduces this issue

https://github.com/Prushka/photosite

To Reproduce

NextJS 13+ app router: There's no option to add a header in this format using generateMetadata:
<link type="application/json+oembed" href="https://....json" />

See: https://oembed.com/

Current vs. Expected behavior

I expect to be able to add oEmbed Json as a metadata or header inside a page or layout.
The component only seems to work in pages route.

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.1.0: Fri Aug 16 19:18:40 PDT 2024; root:xnu-11215.40.42~4/RELEASE_ARM64_T6020
  Available memory (MB): 65536
  Available CPU cores: 12
Binaries:
  Node: 22.8.0
  npm: 10.8.2
  Yarn: 1.22.19
  pnpm: 8.15.4
Relevant Packages:
  next: 14.2.10 // Latest available version is detected (14.2.10).
  eslint-config-next: 14.2.5
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.6.2
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

Metadata

Which stage(s) are affected? (Select all that apply)

next dev (local), next build (local)

Additional context

No response

@Prushka Prushka added the bug Issue was opened via the bug report template. label Sep 12, 2024
@github-actions github-actions bot added the Metadata Related to Next.js' Metadata API. label Sep 12, 2024
@Prushka Prushka changed the title Cannot add dynamic application/json+oembed Cannot add dynamic application/json+oembed using app router Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue was opened via the bug report template. Metadata Related to Next.js' Metadata API.
Projects
None yet
Development

No branches or pull requests

1 participant