Skip to content

refactor: replace NODE_ENV check with import.meta.env.PROD#9

Merged
TomChicken-on-github merged 1 commit intomainfrom
codex/replace-process.env-with-import.meta.env
Feb 24, 2026
Merged

refactor: replace NODE_ENV check with import.meta.env.PROD#9
TomChicken-on-github merged 1 commit intomainfrom
codex/replace-process.env-with-import.meta.env

Conversation

@TomChicken-on-github
Copy link
Collaborator

Motivation

  • Replace Node-style process.env.NODE_ENV environment check with Vite-compatible import.meta.env.PROD so production-only logic uses the proper runtime flag.

Description

  • Updated src/main.js to change if (process.env.NODE_ENV === 'production') to if (import.meta.env.PROD) and left app.config.devtools and app.config.performance inside that production-only branch.
  • Performed a repository-wide search for process.env.NODE_ENV / process.env and confirmed there are no remaining references to replace.

Testing

  • Ran npm run build which completed successfully.
  • Ran ripgrep searches for process.env.NODE_ENV and process.env which returned no remaining matches.

Codex Task

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 24, 2026

Deploying wsmcs with  Cloudflare Pages  Cloudflare Pages

Latest commit: cbf1cd2
Status: ✅  Deploy successful!
Preview URL: https://18c0db2b.wsmcs.pages.dev
Branch Preview URL: https://codex-replace-process-env-wi.wsmcs.pages.dev

View logs

@vercel
Copy link

vercel bot commented Feb 24, 2026

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

Project Deployment Actions Updated (UTC)
wsmcs Ready Ready Preview, Comment Feb 24, 2026 0:14am

@netlify
Copy link

netlify bot commented Feb 24, 2026

Deploy Preview for wsmcs ready!

Name Link
🔨 Latest commit cbf1cd2
🔍 Latest deploy log https://app.netlify.com/projects/wsmcs/deploys/699d961c0fd6870008919dc8
😎 Deploy Preview https://deploy-preview-9--wsmcs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@TomChicken-on-github TomChicken-on-github merged commit 3d9deb8 into main Feb 24, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant