File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 17
17
npm ci --legacy-peer-deps
18
18
npm run lint-check
19
19
npm run build
20
+ env :
21
+ NEXT_PUBLIC_BACKEND_URL : ${{ vars.NEXT_PUBLIC_BACKEND_URL }}
22
+ NEXT_PUBLIC_FIREBASE_SETTINGS : ${{ vars.NEXT_PUBLIC_FIREBASE_SETTINGS }}
23
+ NEXT_PUBLIC_PAYPAL_CLIENT_SECRET : ${{ vars.NEXT_PUBLIC_PAYPAL_CLIENT_SECRET }}
24
+ NEXT_PUBLIC_PAYPAL_CLIENT_ID : ${{ vars.NEXT_PUBLIC_PAYPAL_CLIENT_ID }}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export type FirebaseServices = { auth: Auth; storage: FirebaseStorage };
12
12
*/
13
13
export const initFirebase = ( ) : FirebaseServices => {
14
14
if ( ! env . NEXT_PUBLIC_FIREBASE_SETTINGS ) {
15
- throw new Error ( "Cannot get firebase settings" ) ;
15
+ throw new Error ( "Cannot get firebase settings. " + process . env . NEXT_PUBLIC_FIREBASE_SETTINGS ) ;
16
16
}
17
17
18
18
const firebaseConfig = env . NEXT_PUBLIC_FIREBASE_SETTINGS as FirebaseOptions ;
Original file line number Diff line number Diff line change 4
4
*/
5
5
6
6
import { cleanEnv } from "envalid" ;
7
- import { json , str } from "envalid/dist/validators" ;
7
+ import { str , json } from "envalid/dist/validators" ;
8
8
9
9
/**
10
10
* NextJS only allows the frontend to access environment variables if they start with
@@ -19,7 +19,7 @@ export default cleanEnv(
19
19
} ,
20
20
{
21
21
NEXT_PUBLIC_BACKEND_URL : str ( ) , // URL of our backend
22
- NEXT_PUBLIC_FIREBASE_SETTINGS : json ( ) , // Firebase settings for frontend, stored as a JSON string
22
+ NEXT_PUBLIC_FIREBASE_SETTINGS : json ( ) , // Firebase settings for frontend
23
23
NEXT_PUBLIC_PAYPAL_CLIENT_SECRET : str ( ) ,
24
24
NEXT_PUBLIC_PAYPAL_CLIENT_ID : str ( ) ,
25
25
} ,
You can’t perform that action at this time.
0 commit comments