File tree 2 files changed +3
-25
lines changed
2 files changed +3
-25
lines changed Original file line number Diff line number Diff line change 66
66
env :
67
67
REACT_APP_SENTRY_RELEASE : ${{ github.sha }}
68
68
run : npm run build
69
- - name : Share artifact inside workflow
70
- uses : actions/upload-artifact@v2
71
- with :
72
- name : create-react-app-build
73
- path : build
74
- deploy-preview :
75
- name : Deploy to Firebase Hosting Preview
76
- if : ' !github.event.pull_request.head.repo.fork'
77
- runs-on : ubuntu-latest
78
- needs : [lint, test, build]
79
- steps :
80
- - uses : actions/checkout@v2
81
- - name : Get artifact
82
- uses : actions/download-artifact@v2
83
- with :
84
- name : create-react-app-build
85
- path : build
86
- - name : Deploy to Firebase Hosting
87
- uses : FirebaseExtended/action-hosting-deploy@v0
88
- with :
89
- repoToken : ' ${{ secrets.GITHUB_TOKEN }}'
90
- firebaseServiceAccount : ' ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}'
91
- expires : 7d
92
- projectId : staging-clockwork
Original file line number Diff line number Diff line change @@ -61,12 +61,14 @@ if (process.env.NODE_ENV === 'production' || process.env.REACT_APP_ANALYTICS) {
61
61
62
62
const searchClient = algoliasearch ( 'CR92D3S394' , '5477854d63b676fe021f8f83f5839a3a' ) ;
63
63
64
+ const baseApiUrl = process . env . REACT_APP_API_URL ;
65
+
64
66
migrateLocalStorage ( ) ;
65
67
66
68
ReactDOM . render (
67
69
< React . StrictMode >
68
70
< Sentry . ErrorBoundary fallback = { < > 'An error has occurred'</ > } >
69
- < RestfulProvider base = { '/api' } >
71
+ < RestfulProvider base = { baseApiUrl ?? '/api' } >
70
72
< InstantSearch searchClient = { searchClient } indexName = "dev_uvic" >
71
73
< ChakraProvider portalZIndex = { 999 } theme = { customTheme } >
72
74
< ColorModeScript initialColorMode = { customTheme . config . initialColorMode } />
You can’t perform that action at this time.
0 commit comments