Skip to content

Commit 4e1916a

Browse files
authored
Rename preview to staging everywhere (#14)
And another fix for run dev.
1 parent 838bf86 commit 4e1916a

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

.firebaserc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"projects": {
33
"prod": "setwithforks",
4-
"preview": "setwithforks-dev"
4+
"staging": "setwithforks-dev"
55
}
66
}

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ jobs:
5858
- run: npm run build
5959
working-directory: functions
6060

61-
preview:
62-
name: Deploy Preview
61+
deploy:
62+
name: Deploy Staging
6363
needs: [format, lint_test, functions]
6464
if: github.event_name == 'push' && github.repository_owner == 'eltoder'
6565
uses: ./.github/workflows/deploy.yml
6666
with:
67-
env: preview
67+
env: staging
6868
secrets:
6969
firebase-token: ${{ secrets.FIREBASE_DEV_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"start": "react-scripts start",
3939
"dev": "node rundev.js",
4040
"build:dev": "react-scripts build",
41-
"build:preview": "cross-env REACT_APP_ENV=preview react-scripts build",
41+
"build:staging": "cross-env REACT_APP_ENV=staging react-scripts build",
4242
"build:prod": "cross-env REACT_APP_ENV=production react-scripts build",
4343
"test": "react-scripts test --env=jsdom",
4444
"eject": "react-scripts eject",

rundev.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ emulators = spawn(
4141
[
4242
"emulators:start",
4343
"--project",
44-
"preview",
44+
"staging",
4545
"--import=./data",
4646
"--export-on-exit",
4747
],
@@ -61,7 +61,7 @@ app.stdout.pipe(process.stdout);
6161

6262
const pubsub = new PubSub({
6363
apiEndpoint: "localhost:8085",
64-
projectId: "setwithfriends-dev",
64+
projectId: "setwithforks-dev",
6565
});
6666

6767
setInterval(async () => {

src/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const config = {
1111
},
1212
stripe: null, // Stripe not supported in development
1313
},
14-
preview: {
14+
staging: {
1515
firebase: {
1616
apiKey: "AIzaSyDJbrpSFlmr2D9r9HS0UiFkw_Qk7wlY0lA",
1717
authDomain: "setwithforks-dev.firebaseapp.com",

0 commit comments

Comments
 (0)