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

chore(docs): fix docs for static assets (public) #61225

Merged
merged 4 commits into from
Jan 26, 2024

Conversation

styfle
Copy link
Member

@styfle styfle commented Jan 26, 2024

Closes NEXT-2260

@styfle styfle marked this pull request as ready for review January 26, 2024 18:37
@styfle styfle requested review from a team as code owners January 26, 2024 18:37
@styfle styfle requested review from timeyoutakeit and delbaoliveira and removed request for a team January 26, 2024 18:37
return <Image src={`/avatars/${id}.png`} alt={alt} width="64" height="64" />
}

export function AvatarOfMe() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why have two separate components here?

Copy link
Member Author

@styfle styfle Jan 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm demonstrating a dynamic src string here.

The previous example wasn't clear why you would use <Image src="/me.jpg" /> vs import me from './me.jpg'; <Image src={me} /> so the new example makes it clear that it works with dynamic url string. (this was feedback from @Ethan-Arrowood)

Co-authored-by: Lee Robinson <me@leerob.io>
@styfle styfle requested a review from leerob January 26, 2024 19:22
@styfle styfle merged commit 7f4ca97 into canary Jan 26, 2024
30 checks passed
@styfle styfle deleted the fix-docs-public-assets-caching branch January 26, 2024 20:19
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
created-by: Next.js team PRs by the Next.js team locked
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants