Skip to content

Commit 0224a09

Browse files
committed
fix: resolve Google Auth COOP issue and update production env
1 parent e6d35ce commit 0224a09

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

client/.env.production

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
VITE_API_URL=https://civicverse-server-784946024453.us-central1.run.app
2+
VITE_FIREBASE_API_KEY=AIzaSyAlgNq-_3jdTSEz-1HhhOEKgkHbRLHATtw
3+
VITE_FIREBASE_AUTH_DOMAIN=election-4c1b3.firebaseapp.com
4+
VITE_FIREBASE_PROJECT_ID=election-4c1b3
5+
VITE_FIREBASE_MESSAGING_SENDER_ID=795009536830
6+
VITE_FIREBASE_APP_ID=1:795009536830:web:7019cc7a5c410fbfc5126f
7+
VITE_GA_MEASUREMENT_ID=G-6G5RN5S69E

client/vite.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ export default defineConfig({
66
plugins: [react()],
77
server: {
88
port: 5173,
9+
headers: {
10+
'Cross-Origin-Opener-Policy': 'same-origin-allow-popups',
11+
},
912
proxy: {
1013
'/api': {
1114
target: 'http://localhost:5002',

0 commit comments

Comments
 (0)