---
title: "Comment by Mohd Shan on \"Deploy Vite React App on Both GitHub Pages and Vercel\" | Hashnode"
description: "process.env is removed from Vite. Now they use import.meta but it also doesn't work in a Vite config file only. In the Vite config, we have to use the loadENV m"
url: "https://hashnode.com/posts/deploy-vite-react-app-on-both-github-pages-and-vercel/655b0dd498305e394867a634/comment/673e0af034c75c917b0018cd"
---

[Discussion](https://hashnode.com/posts/deploy-vite-react-app-on-both-github-pages-and-vercel/655b0dd498305e394867a634)

Comment [Deploy Vite React App on Both GitHub Pages and Vercel](https://hashnode.com/posts/deploy-vite-react-app-on-both-github-pages-and-vercel/655b0dd498305e394867a634)

[Mohd Shan](https://hashnode.com/@mohdshan)

[Nov 20, 2024](https://hashnode.com/posts/deploy-vite-react-app-on-both-github-pages-and-vercel/655b0dd498305e394867a634/comment/673e0af034c75c917b0018cd)

process.env is removed from Vite. Now they use import.meta but it also doesn't work in a Vite config file only. In the Vite config, we have to use the loadENV method.

![Screenshot 2024-11-19 203404.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1732118907191/8f6dc997-a23c-46ae-839c-04e5d0d90880.png)
