Skip to content

Conversation

m4rrc0
Copy link

@m4rrc0 m4rrc0 commented May 2, 2025

This PR aims to solve #1431.

It allows using a pathPrefix in local mode, which is useful for editing content files outside of the project root for example but is not limited to this use case.

It is designed to have minimal footprint on the rest of the codebase.

@m4rrc0 m4rrc0 requested a review from emmatown as a code owner May 2, 2025 13:25
Copy link

changeset-bot bot commented May 2, 2025

⚠️ No Changeset found

Latest commit: 55b144d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@emmatown
Copy link
Member

emmatown commented May 6, 2025

Providing a localBaseDirectory to the API route is the intended way to do this

@m4rrc0
Copy link
Author

m4rrc0 commented May 6, 2025

@emmatown , could you elaborate with an example or point me to some resource please, since it is not documented? How should I configure this?

I noticed the localBaseDirectory but it seemed on a different level of abstraction... not really something meant to be easily customized in the config.

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