Skip to content

Commit

Permalink
fix(nx-ngrok): set target environment variables (#15)
Browse files Browse the repository at this point in the history
* fix(nx-ngrok): set target environment variables

* build: patch changeset
  • Loading branch information
domjtalbot authored Apr 17, 2023
1 parent 9c88fca commit 7c2a173
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/sweet-sloths-return.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'nx-ngrok': patch
---

Fix tunnel executor failing on 15.9.2 with Next.js
4 changes: 4 additions & 0 deletions packages/nx-ngrok/src/executors/tunnel/utils/start-target.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ export async function* startTarget(
context.projectGraph
);

process.env.NX_TASK_TARGET_PROJECT = parsedDevtarget.project;
process.env.NX_TASK_TARGET_TARGET = parsedDevtarget.target;
process.env.NX_TASK_TARGET_CONFIGURATION = parsedDevtarget.configuration;

for await (const output of await runExecutor<{
success: boolean;
baseUrl?: string;
Expand Down

0 comments on commit 7c2a173

Please sign in to comment.