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

refactor basePath to withBasePath #224

Merged
merged 3 commits into from
Nov 25, 2024
Merged

refactor basePath to withBasePath #224

merged 3 commits into from
Nov 25, 2024

Conversation

souporserious
Copy link
Owner

@souporserious souporserious commented Nov 25, 2024

Moves the Directory basePath option to <Directory>.withBasePath. This aligns with the recent refactor of other Directory options.

Breaking Changes

Update the basePath option to withBasePath:

export const posts = new Directory<{ mdx: PostType }>({
    path: 'posts',
})
  .withBasePath('blog')

Copy link

vercel bot commented Nov 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
renoun ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 25, 2024 9:36pm

@souporserious souporserious merged commit 46f0807 into main Nov 25, 2024
3 checks passed
@souporserious souporserious deleted the refactor-base-path branch November 25, 2024 21:47
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.

1 participant