fastify-vite icon indicating copy to clipboard operation
fastify-vite copied to clipboard

feat(vue): add `key` and `meta`, and re-export `createBeforeEachHandlers`

Open zanmato opened this issue 9 months ago • 3 comments

This adds key and meta to the route context, and re-exports the beforeEach routing handlers from $app/index to allow the developer to override these methods. Also adds an i18n example (vue-i18n) that has both locale prefix and domain routing, by overriding the above methods and properties.

Checklist

zanmato avatar Apr 25 '25 18:04 zanmato

Deploy Preview for agitated-mahavira-26f8f9 ready!

Name Link
Latest commit eb7fd40962a44676133268dcb62b3af8c0a3d5d9
Latest deploy log https://app.netlify.com/projects/agitated-mahavira-26f8f9/deploys/689b02ca6a0ff400081fdfde
Deploy Preview https://deploy-preview-244--agitated-mahavira-26f8f9.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.

netlify[bot] avatar Apr 25 '25 18:04 netlify[bot]

@galvez I think this is a better approach, see the first commit for the changes to the vue package, and the second commit on how I've overridden the routing creation to enable i18n routing. The routing file is a bit verbose, but I don't think we could shorten it that much to be honest

zanmato avatar Apr 25 '25 18:04 zanmato

⚠️ No Changeset found

Latest commit: eb7fd40962a44676133268dcb62b3af8c0a3d5d9

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.

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

changeset-bot[bot] avatar Aug 12 '25 09:08 changeset-bot[bot]