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

Update Gatsby migration guide to use image imports. #29178

Merged
merged 4 commits into from Sep 19, 2021
Merged

Conversation

leerob
Copy link
Member

@leerob leerob commented Sep 17, 2021

This aligns more with users migrating from Gatsby, who are used to importing local images in their repository. With image imports, you don't need to set the width and height - they are provided automatically.

https://nextjs.org/docs/basic-features/image-optimization#image-imports

docs/migrating/from-gatsby.md Outdated Show resolved Hide resolved
Co-authored-by: Steven <steven@ceriously.com>
@kara
Copy link
Collaborator

kara commented Sep 17, 2021

This is awesome! Do we also want to link to this new section from the Image Optimization docs? So users can find it if they start from image docs instead of Gatsby docs (maybe a 'migrating images from other x' section)

@styfle
Copy link
Member

styfle commented Sep 18, 2021

@kara Sounds good! Let’s add a link from @atcastle ’s PR #29186

@ijjk ijjk merged commit 638e6cc into canary Sep 19, 2021
@ijjk ijjk deleted the leerob-patch-1 branch September 19, 2021 05:12
@vercel vercel locked as resolved and limited conversation to collaborators Jan 27, 2022
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants