-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: hosting/functionsの接続、他プロジェクトへの依存
- Loading branch information
1 parent
0e126cc
commit e0da38b
Showing
5 changed files
with
22 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,13 @@ | ||
PROJECT_ID := "united-storm-223507" | ||
SITE_ENDPOINT := "https://photo.phoooutty.com" | ||
CLOUD_FUNCTIONS_ENDPOINT := https://asia-northeast1-united-storm-223507.cloudfunctions.net | ||
|
||
.PHONY: build | ||
build/dev: | ||
yarn build | ||
build/prd: | ||
REACT_APP_BV_ENDPOINT=$(SITE_ENDPOINT) \ | ||
REACT_APP_CLOUD_FUNCTIONS_ENDPOINT=$(CLOUD_FUNCTIONS_ENDPOINT) \ | ||
yarn build | ||
REACT_APP_BV_ENDPOINT=$(SITE_ENDPOINT) yarn build | ||
serve: build/dev | ||
firebase serve --project $(PROJECT_ID) | ||
firebase serve | ||
deploy: build/prd | ||
firebase deploy --project $(PROJECT_ID) | ||
firebase deploy | ||
deploy/functions: | ||
firebase deploy --project $(PROJECT_ID) --only functions | ||
firebase deploy --only functions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
export const bvEndpoint = process.env.REACT_APP_BV_ENDPOINT || "http://localhost:5000"; | ||
export const cloudFunctionEndpoint = process.env.REACT_APP_CLOUD_FUNCTIONS_ENDPOINT || "http://localhost:5001/united-storm-223507/us-central1"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters