From 774e0512119ec6e69af866f4dd778532057e38b6 Mon Sep 17 00:00:00 2001 From: Jade Devin Cabatlao Date: Fri, 6 Sep 2024 23:04:27 +0200 Subject: [PATCH 1/2] Allow override for plugins in apiRoutes so that envPrefix can be updated. --- packages/vinxi-router/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) ?? []), ], }; } From 6f858f49d6b4007d3680a866af065e673a26e814 Mon Sep 17 00:00:00 2001 From: Jade Devin Cabatlao Date: Sat, 7 Sep 2024 05:05:50 +0800 Subject: [PATCH 2/2] Create long-panthers-exist.md --- .changeset/long-panthers-exist.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/long-panthers-exist.md 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