Skip to content

feat(core): support dynamic function and field interpolation in collection path (#340) - #1650

Open
thinhnx128 wants to merge 3 commits into
Thinkmill:mainfrom
thinhnx128:feat/configurable-collection-path-340
Open

thinhnx128 wants to merge 3 commits into
Thinkmill:mainfrom
thinhnx128:feat/configurable-collection-path-340

Conversation

@thinhnx128

@thinhnx128 thinhnx128 commented Oct 30, 2026 •

Copy link
Copy Markdown

feat(core): support dynamic configurable collection path tokens (#340)

Summary

Adds support for dynamic path tokens (such as {slug}, {year}, {month}, {day}, and custom frontmatter field tokens) in Keystatic collection path configurations (#340):

  • Resolves dynamic path templates deterministically while preventing path traversal (..) and normalizing slashes.
  • Preserves backward compatibility with static glob paths (content/posts/*).
  • Includes unit tests and changeset entry.

/claim #340
Fixes #340

@thinhnx128
thinhnx128 requested a review from emmatown as a code owner October 30, 2026 10:15
@changeset-bot

changeset-bot Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 178c531

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@keystatic/core Minor
@keystatic/templates-astro Patch
@keystatic/templates-nextjs Patch
@keystatic/templates-remix Patch

Not sure what this means? Click here to learn what changesets are.

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

This branch has not been deployed

No deployments
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.

Enhancement: more configurable collection path

1 participant