diff --git a/.changeset/long-panthers-exist.md b/.changeset/long-panthers-exist.md new file mode 100644 index 00000000..d16b8ee3 --- /dev/null +++ b/.changeset/long-panthers-exist.md @@ -0,0 +1,5 @@ +--- +"@vinxi/router": patch +--- + +Allow override for plugins in apiRoutes so that envPrefix can be updated diff --git a/packages/vinxi-router/api.js b/packages/vinxi-router/api.js index 0221bffc..67282b09 100644 --- a/packages/vinxi-router/api.js +++ b/packages/vinxi-router/api.js @@ -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) ?? []), ], }; }