Skip to content

Commit

Permalink
Merge pull request #369 from jadedevin13/plugin-options-api-routes
Browse files Browse the repository at this point in the history
  • Loading branch information
nksaraf authored Sep 13, 2024
2 parents cb790e1 + 6f858f4 commit 74da302
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/long-panthers-exist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@vinxi/router": patch
---

Allow override for plugins in apiRoutes so that envPrefix can be updated
2 changes: 1 addition & 1 deletion packages/vinxi-router/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ export function apiRouter({
handler,
target: "server",
plugins: async () => [
...(((await plugins?.()) ?? []).filter(Boolean) ?? []),
tsconfigPaths(),
config("env-vars", {
envPrefix: "PRIVATE_",
}),
...(((await plugins?.()) ?? []).filter(Boolean) ?? []),
],
};
}

0 comments on commit 74da302

Please sign in to comment.