Skip to content

Turbopack: Add support for additionalRoots to deployment adapters - #99015

Merged
bgw merged 5 commits into
canaryfrom
bgw/additional-roots-deployment-adapters
Sep 24, 2026
Merged

bgw merged 5 commits into
canaryfrom
bgw/additional-roots-deployment-adapters

Conversation

@bgw

@bgw bgw commented Sep 22, 2026 •

Copy link
Copy Markdown
Member

Follow-up to #98003 so that this works with vc deploy (or anything else using the adapters API, this isn't a breaking change).

Creates "synthetic" symlinks when it needs to rewrite a symlink target (for cross-root links).

Potential follow-up: We can potentially extend the adapter API to let us pass the full symlink information to adapters that support it, so that we don't have to create a bunch of synthetic symlink files on disk.

@github-actions

github-actions Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Tests Passed

Commit: 801de1d

Comment thread docs/01-app/03-api-reference/05-config/01-next-config-js/turbopack.mdx Outdated
@bgw
bgw force-pushed the bgw/additional-roots-deployment-adapters branch from 3e6484d to 37aae5a Compare September 23, 2026 20:10
@bgw
bgw marked this pull request as ready for review September 23, 2026 20:10
@bgw
bgw requested a review from lukesandberg September 23, 2026 20:10
Comment thread docs/01-app/03-api-reference/05-config/01-next-config-js/turbopack.mdx Outdated

## Examples

### Root directory

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

discussed in person

these two sections are maybe not 'examples' so much as 'descriptions', could go in a different section and/or their own pages

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Will do this in a follow-up.

@bgw bgw changed the title Draft: Turbopack: Add support for additionalRoots to deployment adapters Turbopack: Add support for additionalRoots to deployment adapters Sep 23, 2026
Comment thread packages/next/src/build/adapter/build-complete.ts Outdated
Comment thread packages/next/src/build/adapter/synthetic-symlinks.ts
Comment thread packages/next/src/build/adapter/synthetic-symlinks.ts Outdated
Comment thread packages/next/src/build/adapter/synthetic-symlinks.ts Outdated
Comment thread packages/next/src/build/nft.ts Outdated
@bgw
bgw requested a review from lukesandberg September 23, 2026 22:31

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

move this so it is a sibling of code under test

import { createAdapterSyntheticSymlinkDirectory } from '../../../packages/next/src/build/adapter/synthetic-symlinks'

describe('adapter synthetic symlinks', () => {
describe('mapNftFileEntries', () => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should this be next to the other tests for mapNftFileEntries

@bgw
bgw enabled auto-merge (squash) September 23, 2026 23:32
@bgw
bgw disabled the stack merge September 23, 2026 23:47
@bgw
bgw added this pull request to stack #99131 September 23, 2026 23:47
@bgw
bgw force-pushed the bgw/additional-roots-deployment-adapters branch from 5fa81fe to 801de1d Compare September 23, 2026 23:49
@bgw
bgw merged commit e1138ce into canary Sep 24, 2026
220 of 222 checks passed
@bgw
bgw deleted the bgw/additional-roots-deployment-adapters branch September 24, 2026 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants