Skip to content

Commit

Permalink
Edit redirect to home in firebase.json
Browse files Browse the repository at this point in the history
separated dev and dist environments to use different firebase projects
  • Loading branch information
KonKyaw committed Sep 22, 2023
1 parent 08ed291 commit 065772c
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 20 deletions.
5 changes: 3 additions & 2 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"projects": {
"default": "wardrobe-inventory-15a18"
"default": "wardrobe-inventory-15a18",
"wardrobe-inventory-15a18": "wardrobe-inventory-15a18"
},
"targets": {
"wardrobe-inventory-15a18": {
Expand All @@ -11,4 +12,4 @@
}
}
}
}
}
6 changes: 6 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
36 changes: 18 additions & 18 deletions src/environments/environment.development.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
export const environment = {
production: false,
firebase: {
apiKey: "AIzaSyCfC3ScFCaDL8274ZTXuxeC7jgJjYjVO8g",
authDomain: "wardrobe-inventory-15a18.firebaseapp.com",
databaseURL: "https://wardrobe-inventory-15a18-default-rtdb.firebaseio.com",
projectId: "wardrobe-inventory-15a18",
storageBucket: "wardrobe-inventory-15a18.appspot.com",
messagingSenderId: "689431962919",
appId: "1:689431962919:web:fea34a4af078f59083f502",
measurementId: "G-2YS73Y52BD"
}
// firebase: {
// projectId: 'wardrobe-inventory-42f37',
// appId: '1:115492683025:web:d8a870251576338824a0b0',
// databaseURL: 'https://wardrobe-inventory-42f37-default-rtdb.asia-southeast1.firebasedatabase.app',
// storageBucket: 'wardrobe-inventory-42f37.appspot.com',
// apiKey: 'AIzaSyCIOQuCA7R0V6EbvKsNAOytqdPeTjOprtA',
// authDomain: 'wardrobe-inventory-42f37.firebaseapp.com',
// messagingSenderId: '115492683025',
// measurementId: 'G-J0N9DJFCQE'
// apiKey: "AIzaSyCfC3ScFCaDL8274ZTXuxeC7jgJjYjVO8g",
// authDomain: "wardrobe-inventory-15a18.firebaseapp.com",
// databaseURL: "https://wardrobe-inventory-15a18-default-rtdb.firebaseio.com",
// projectId: "wardrobe-inventory-15a18",
// storageBucket: "wardrobe-inventory-15a18.appspot.com",
// messagingSenderId: "689431962919",
// appId: "1:689431962919:web:fea34a4af078f59083f502",
// measurementId: "G-2YS73Y52BD"
// }
firebase: {
projectId: 'wardrobe-inventory-42f37',
appId: '1:115492683025:web:d8a870251576338824a0b0',
databaseURL: 'https://wardrobe-inventory-42f37-default-rtdb.asia-southeast1.firebasedatabase.app',
storageBucket: 'wardrobe-inventory-42f37.appspot.com',
apiKey: 'AIzaSyCIOQuCA7R0V6EbvKsNAOytqdPeTjOprtA',
authDomain: 'wardrobe-inventory-42f37.firebaseapp.com',
messagingSenderId: '115492683025',
measurementId: 'G-J0N9DJFCQE'
}
};

0 comments on commit 065772c

Please sign in to comment.