Skip to content

chore: remove unused API_TOKEN env var#631

Merged
rickstaa merged 1 commit into
mainfrom
chore/remove-unused-api-token
Apr 24, 2026
Merged

chore: remove unused API_TOKEN env var#631
rickstaa merged 1 commit into
mainfrom
chore/remove-unused-api-token

Conversation

@rickstaa
Copy link
Copy Markdown
Member

Summary

Test plan

  • CI passes (typecheck, lint, format)
  • Image builds without the removed ARG

🤖 Generated with Claude Code

API_TOKEN was declared in .env.example and Dockerfile but never
referenced anywhere in the source code.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 24, 2026 14:03
@rickstaa rickstaa requested a review from ECWireless as a code owner April 24, 2026 14:03
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
explorer-arbitrum-one Ready Ready Preview, Comment Apr 24, 2026 2:06pm

Request Review

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes the unused API_TOKEN environment variable from the repository’s configuration scaffolding (example env file and Docker build-time args), keeping env surface area aligned with what the app actually consumes.

Changes:

  • Removed API_TOKEN from Dockerfile build ARG list and .env generation step.
  • Removed API_TOKEN from .env.example.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
Dockerfile Drops API_TOKEN ARG and stops writing it into the generated .env during image build.
.env.example Removes the unused API_TOKEN entry from the example environment file.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Dockerfile
Comment on lines 21 to 24
RUN echo "CHANGEFEED_ACCESS_TOKEN=${CHANGEFEED_ACCESS_TOKEN}" >> .env && \
echo "GITHUB_ACCESS_TOKEN=${GITHUB_ACCESS_TOKEN}" >> .env && \
echo "LIVEPEER_COM_API_ADMIN_TOKEN=${LIVEPEER_COM_API_ADMIN_TOKEN}" >> .env && \
echo "API_TOKEN=${API_TOKEN}" >> .env && \
echo "PINATA_JWT=${PINATA_JWT}" >> .env && \
Copy link

Copilot AI Apr 24, 2026

Choose a reason for hiding this comment

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

In the .env generation RUN instruction, the last two lines are malformed: the echo "NEXT_PUBLIC_METRICS_SERVER_URL=..." line is missing && \ before the final echo, and the final variable expansion uses a typo (NEXT_PUBLI_AI_METRICS_SERVER_URL) instead of the declared NEXT_PUBLIC_AI_METRICS_SERVER_URL. As written, this will write an incorrect .env line (or behave unexpectedly) and will not propagate the AI metrics URL correctly. Please add the missing command separator and fix the variable name so the final entry is written as its own line.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Looked at in follow up.

@rickstaa rickstaa merged commit c5de8c3 into main Apr 24, 2026
11 checks passed
@rickstaa rickstaa deleted the chore/remove-unused-api-token branch April 24, 2026 14:37
@github-project-automation github-project-automation Bot moved this from Triage to Done in Engineering Roadmap Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants