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

Re-export useBase from H3 #371

Merged
merged 3 commits into from
Sep 13, 2024
Merged

Re-export useBase from H3 #371

merged 3 commits into from
Sep 13, 2024

Conversation

jakst
Copy link
Contributor

@jakst jakst commented Sep 10, 2024

useBase is a useful H3 utility for creating nested routers. Having it available directly from Vinxi would be useful.

https://h3.unjs.io/guide/router#nested-routers

You can nest routers to create a tree of routers. This is useful to split your application into multiple parts like the API and the website.

websiteRouter.use("/api/**", useBase("/api", apiRouter.handler));

Copy link

codesandbox bot commented Sep 10, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

changeset-bot bot commented Sep 10, 2024

🦋 Changeset detected

Latest commit: af8381d

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

This PR includes changesets to release 2 packages
Name Type
vinxi Patch
@vinxi/router 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

Copy link

vercel bot commented Sep 10, 2024

@jakst is attempting to deploy a commit to the Nikhil Saraf's projects Team on Vercel.

A member of the Team first needs to authorize it.

@jakst jakst changed the title Re-export useBase Re-export useBase from H3 Sep 10, 2024
Copy link

pkg-pr-new bot commented Sep 13, 2024

Open in Stackblitz

@vinxi/deno-doc

pnpm add https://pkg.pr.new/@vinxi/deno-doc@371

vinxi

pnpm add https://pkg.pr.new/vinxi@371

@vinxi/plugin-directives

pnpm add https://pkg.pr.new/@vinxi/plugin-directives@371

@vinxi/doc

pnpm add https://pkg.pr.new/@vinxi/doc@371

@vinxi/openapi

pnpm add https://pkg.pr.new/@vinxi/openapi@371

@vinxi/plugin-mdx

pnpm add https://pkg.pr.new/@vinxi/plugin-mdx@371

@vinxi/react

pnpm add https://pkg.pr.new/@vinxi/react@371

@vinxi/react-server

pnpm add https://pkg.pr.new/@vinxi/react-server@371

@vinxi/router

pnpm add https://pkg.pr.new/@vinxi/router@371

@vinxi/server-components

pnpm add https://pkg.pr.new/@vinxi/server-components@371

@vinxi/server-functions

pnpm add https://pkg.pr.new/@vinxi/server-functions@371

@vinxi/solid

pnpm add https://pkg.pr.new/@vinxi/solid@371

commit: af8381d

@nksaraf nksaraf merged commit 3e93d4b into nksaraf:main Sep 13, 2024
7 of 8 checks passed
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