Skip to content

Commit

Permalink
removed dotenv
Browse files Browse the repository at this point in the history
  • Loading branch information
jainvedant392 committed Mar 8, 2024
1 parent 2022bfd commit a5d51e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@
"autoprefixer": "^10.4.14",
"cypress": "^13.5.0",
"cypress-localstorage-commands": "^2.2.3",
"dotenv": "^16.4.5",
"cypress-split": "^1.20.1",
"eslint": "^8.44.0",
"eslint-config-prettier": "^8.8.0",
Expand Down
7 changes: 4 additions & 3 deletions vite.config.mts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { VitePWA } from "vite-plugin-pwa";
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import 'dotenv/config';

const cdnUrls =
process.env.CARE_CDN_URL ??
Expand All @@ -11,6 +10,8 @@ const cdnUrls =
"http://localhost:4566",
].join(" ");

const local_care_api = process.env.CARE_API ?? "http://localhost:9000";

export default defineConfig({
envPrefix: "REACT_",
plugins: [
Expand Down Expand Up @@ -78,7 +79,7 @@ export default defineConfig({
port: 4000,
proxy: {
"/api": {
target: process.env.CARE_API ?? "https://careapi.ohc.network",
target: local_care_api ?? "https://careapi.ohc.network",
changeOrigin: true,
},
},
Expand All @@ -95,7 +96,7 @@ export default defineConfig({
port: 4000,
proxy: {
"/api": {
target: process.env.CARE_API ?? "https://careapi.ohc.network",
target: local_care_api ?? "https://careapi.ohc.network",
changeOrigin: true,
},
},
Expand Down

0 comments on commit a5d51e4

Please sign in to comment.