fix(functions): forward npm auth token to Docker bundler by jgoux · Pull Request #5645 · supabase/cli · GitHub
Skip to content

fix(functions): forward npm auth token to Docker bundler#5645

Merged
jgoux merged 3 commits into
developfrom
fix/functions-npm-auth-token-env
Jun 22, 2026
Merged

fix(functions): forward npm auth token to Docker bundler#5645
jgoux merged 3 commits into
developfrom
fix/functions-npm-auth-token-env

Conversation

@jgoux

@jgoux jgoux commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Ports the Docker bundler npm env forwarding from #4933 into the TypeScript functions deploy implementation.

The TS deploy path already forwarded NPM_CONFIG_REGISTRY from the host, but did not forward NPM_AUTH_TOKEN, so .npmrc entries that expand ${NPM_AUTH_TOKEN} could fail when Docker resolves private npm packages. This keeps the scope to host environment forwarding only; it does not load supabase/functions/.env during deploy.

Refs #4927.
Refs #4933.

@jgoux jgoux marked this pull request as ready for review June 22, 2026 09:20
@jgoux jgoux requested a review from a team as a code owner June 22, 2026 09:20
Comment thread apps/cli/src/shared/functions/deploy.ts Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e5cb26438e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread apps/cli/src/shared/functions/deploy.ts Outdated
@github-actions

github-actions Bot commented Jun 22, 2026

Copy link
Copy Markdown

@jgoux jgoux added this pull request to the merge queue Jun 22, 2026
Merged via the queue into develop with commit 17a84e6 Jun 22, 2026
37 of 39 checks passed
@jgoux jgoux deleted the fix/functions-npm-auth-token-env branch June 22, 2026 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants