Skip to content

Add preserveDirectoryStructure adapter feature#13336

Open
matthewp wants to merge 1 commit intov6from
preservedirectorystructure
Open

Add preserveDirectoryStructure adapter feature#13336
matthewp wants to merge 1 commit intov6from
preservedirectorystructure

Conversation

@matthewp
Copy link
Contributor

@matthewp matthewp commented Mar 2, 2026

Description (required)

Adds new preserveDirectoryStructure option to the adapter features that preserves config.build.client on static builds.

Related issues & labels (optional)

For Astro version: 6.x. See astro PR #15694.

@netlify
Copy link

netlify bot commented Mar 2, 2026

Deploy Preview for astro-docs-2 ready!

Name Link
🔨 Latest commit 91b1aeb
🔍 Latest deploy log https://app.netlify.com/projects/astro-docs-2/deploys/69a5add2e0588f0008f584ef
😎 Deploy Preview https://deploy-preview-13336--astro-docs-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@astrobot-houston
Copy link
Contributor

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File Note
en/reference/adapter-reference.mdx Source changed, localizations will be marked as outdated.
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

<p>

**Type:** `boolean`<br />
<Since v="6.0.0" />
Copy link
Member

@sarah11918 sarah11918 Mar 2, 2026

Choose a reason for hiding this comment

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

Suggested change
<Since v="6.0.0" />
**Default:** `false`<br />
<Since v="6.0.0" />

Sounds like this is false by default. ( @ArmandPhilippot I'm noticing staticHeaders above doesn't specify a default either, and probably should? Just want to check with you since you recently worked on this page though!)

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, in both cases undefined or false behave the same. So, I think we can add a default here. IIRC, we've already done that in a few places!

Copy link
Member

Choose a reason for hiding this comment

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

Perfect, thanks! I think that should be all that's needed here then, to add default: false in both places!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, will update tomorrow.

@sarah11918 sarah11918 added add new content Document something that is not in docs. May require testing, confirmation, or affect other pages. merge-on-release Don't merge this before the feature is released! (MQ=approved but WAIT for feature release!) 6.0 labels Mar 2, 2026
@sarah11918 sarah11918 added this to the v6.0.0 docs milestone Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.0 add new content Document something that is not in docs. May require testing, confirmation, or affect other pages. merge-on-release Don't merge this before the feature is released! (MQ=approved but WAIT for feature release!)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants