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

Next.js Image bug in i18n? #3856

Open
thinkingjimmy opened this issue Dec 24, 2024 · 1 comment
Open

Next.js Image bug in i18n? #3856

thinkingjimmy opened this issue Dec 24, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@thinkingjimmy
Copy link

Version:

    "next": "^15.1.2",
    "nextra": "3.3.0",
    "nextra-theme-docs": "3.3.0",

my code:

import Image from 'next/image';

![Comflowy](/introduction/comflowy-hero.png)

<Image src={"/introduction/comflowy-hero.png"} alt="Comflowy" width={100} height={100} />

result ( the markdown version image is ok):

image

error from terminal:

 GET /zh/introduction/comflowy-hero.png 404 in 209ms
@thinkingjimmy thinkingjimmy added the bug Something isn't working label Dec 24, 2024
@jellli
Copy link
Contributor

jellli commented Dec 24, 2024

Try adding /public at the beginning to see if it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants