File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- let previewBaseUrl = '' ;
2- try {
3- const previewUrlBase64 = process . env . LHCI_PREVIEW_URL_BASE64 ;
4- console . log ( "environemtnt variable LHCI_PREVIEW_URL:" , previewUrlBase64 ) ;
5- if ( previewUrlBase64 ) {
6- const decodedUrl = Buffer . from ( previewUrlBase64 , 'base64' ) . toString ( 'utf-8' ) ;
7- console . log ( "Decoded preview URL:" , decodedUrl ) ;
8- previewBaseUrl = decodedUrl ;
9- } else {
10- console . error ( "LHCI_PREVIEW_URL_BASE64 environment variable is not set." ) ;
11- }
12- } catch ( error ) {
13- console . error ( "Error decoding LHCI_PREVIEW_URL_BASE64:" , error ) ;
14- }
1+ let previewBaseUrl = process . env . LHCI_PREVIEW_URL || 'http://localhost:3000' ;
2+ console . log ( "Initial preview URL:" , previewBaseUrl ) ;
153
164module . exports = {
175 ci : {
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ jobs:
102102 configPath : ./.github/lighthouserc.js
103103 temporaryPublicStorage : true
104104 env :
105- LHCI_PREVIEW_URL_BASE64 : ${{ steps.get_vercel_url.outputs.url }}
105+ LHCI_PREVIEW_URL : ${{ steps.get_vercel_url.outputs.url }}
106106 VERCEL_TOKEN : ${{ env.VERCEL_TOKEN }}
107107
108108 - name : Format lighthouse score
You can’t perform that action at this time.
0 commit comments