File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ function resolveCodeVariables(
2929 const varName = match . slice ( 2 , - 2 ) . trim ( )
3030 // Priority: 1. Environment variables from workflow, 2. Params, 3. process.env
3131 const varValue = envVars [ varName ] || params [ varName ] || process . env [ varName ] || ''
32- resolvedCode = resolvedCode . replace ( match , varValue )
32+ // Wrap the value in quotes to ensure it's treated as a string literal
33+ resolvedCode = resolvedCode . replace ( match , JSON . stringify ( varValue ) )
3334 }
3435
3536 // Resolve tags with <tag_name> syntax
Original file line number Diff line number Diff line change @@ -5,16 +5,15 @@ export function getBaseURL() {
55 let baseURL
66
77 if ( process . env . VERCEL_ENV === 'preview' ) {
8- baseURL = `https://${ process . env . VERCEL_URL } `
8+ baseURL = `https://${ process . env . NEXT_PUBLIC_VERCEL_URL } `
99 } else if ( process . env . VERCEL_ENV === 'development' ) {
10- baseURL = `https://${ process . env . VERCEL_URL } `
10+ baseURL = `https://${ process . env . NEXT_PUBLIC_VERCEL_URL } `
1111 } else if ( process . env . VERCEL_ENV === 'production' ) {
1212 baseURL = process . env . BETTER_AUTH_URL
1313 } else if ( process . env . NODE_ENV === 'development' ) {
1414 baseURL = process . env . BETTER_AUTH_URL
1515 }
1616
17- console . log ( 'baseURL:' , baseURL )
1817 return baseURL
1918}
2019
You can’t perform that action at this time.
0 commit comments