Skip to content

Commit

Permalink
client: add .env to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham-Lal committed Dec 2, 2023
1 parent 1fecaf2 commit 3e71282
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
cd ./client
npm ci
npm run build
env:
VITE_SECRET_KEY: ${{ secrets.VITE_SECRET_KEY }}
- name: Deploy to Vercel
uses: amondnet/vercel-action@v20
with:
Expand Down
4 changes: 2 additions & 2 deletions client/src/store/useAuthStore.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { create } from 'zustand';
import { toast } from 'sonner';
import crypto from "crypto-js";
import crypto from 'crypto-js';

const SECRET_KEY = "THIS_IS_THE_SECRET_KEY_FOR_GDSC_BIT";
const SECRET_KEY = import.meta.env.VITE_SECRET_KEY;

export const useAuthStore = create((set) => ({
user: null,
Expand Down
4 changes: 2 additions & 2 deletions client/src/store/useCertStore.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { create } from 'zustand';
import crypto from "crypto-js";
import crypto from 'crypto-js';

const SECRET_KEY = "THIS_IS_THE_SECRET_KEY_FOR_GDSC_BIT";
const SECRET_KEY = import.meta.env.VITE_SECRET_KEY;

export const useCertStore = create((set) => ({
certLoading: true,
Expand Down

0 comments on commit 3e71282

Please sign in to comment.