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

Fix serving images referenced from app directory #49236

Merged
merged 1 commit into from May 4, 2023
Merged

Conversation

jridgewell
Copy link
Contributor

What?

Fixes serving images that are referenced by JS files inside the /app directory.

Why?

How?

The NextImageContentSource attempts to fetch the image out of it's inner content source, and before we were only providing it with the /public and /pages directory's respective sources.

Re: https://vercel.slack.com/archives/C046HAU4H7F/p1683220799917649

@jridgewell jridgewell requested review from timneutkens, ijjk, shuding and a team as code owners May 4, 2023 19:02
@ijjk ijjk added Turbopack Related to Turbopack with Next.js. created-by: Turbopack team PRs by the turbopack team type: next labels May 4, 2023
@sokra sokra merged commit d24f506 into canary May 4, 2023
99 checks passed
@sokra sokra deleted the jrl-image-source branch May 4, 2023 19:30
kodiakhq bot pushed a commit that referenced this pull request May 10, 2023
### What?

Regression test for #49236


### Why?

### How?
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
created-by: Turbopack team PRs by the turbopack team Turbopack Related to Turbopack with Next.js. type: next
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants