---
title: "Mohd Shan (@mohdshan) | Hashnode"
description: "ReactJS Frontend Developer. Read the latest articles by Mohd Shan on Hashnode."
url: "https://hashnode.com/@mohdshan"
---

@mohdshan

# Mohd Shan

@mohdshan · Joined June 2023

ReactJS Frontend Developer

## Comments

[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.](https://hashnode.com/posts/deploy-vite-react-app-on-both-github-pages-and-vercel/655b0dd498305e394867a634/comment/673e0af034c75c917b0018cd)

Comment · Article · Nov 20, 2024 · [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)

[process is now removed from vite also in vite config we cant access env direct, instead we have to use loadENV from vite, like below:- import { defineConfig, loadEnv } from 'vite'; export default defineConfig(({ mode }) => { const env = loadEnv(mode, '.', 'VITE\_'); return { base: env.VITE\_BASE\_PATH || "/your-repo-name", // Other Vite configurations }; });](https://hashnode.com/posts/deploy-vite-react-app-on-both-github-pages-and-vercel/655b0dd498305e394867a634/comment/673ca8ef32c13a9c76a23076)

Comment · Article · Nov 19, 2024 · [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)

[Nice Info](https://hashnode.com/posts/different-promise-methods/627ac456f543e7a92b804156/comment/64906cffaa3e0316816811ab)

Comment · Article · Jun 19, 2023 · [Different Promise Methods](https://hashnode.com/posts/different-promise-methods/627ac456f543e7a92b804156)
