File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ interface InjectEnvironmentVariablesOptions {
43
43
baseVariables : Record < string , EnvironmentVariable >
44
44
envAPI : EnvironmentVariables
45
45
netlifyAPI ?: NetlifyAPI
46
- siteID : string
46
+ siteID ? : string
47
47
}
48
48
49
49
export const injectEnvVariables = async ( {
@@ -57,7 +57,7 @@ export const injectEnvVariables = async ({
57
57
58
58
let variables = baseVariables
59
59
60
- if ( netlifyAPI && accountSlug ) {
60
+ if ( netlifyAPI && siteID && accountSlug ) {
61
61
variables = await getEnvelopeEnv ( {
62
62
accountId : accountSlug ,
63
63
api : netlifyAPI ,
Original file line number Diff line number Diff line change @@ -299,7 +299,7 @@ export class NetlifyDev {
299
299
300
300
let envVariables : Record < string , InjectedEnvironmentVariable > = { }
301
301
302
- if ( this . #features. environmentVariables && siteID ) {
302
+ if ( this . #features. environmentVariables ) {
303
303
// TODO: Use proper types for this.
304
304
envVariables = await injectEnvVariables ( {
305
305
accountSlug : config ?. siteInfo ?. account_slug ,
You can’t perform that action at this time.
0 commit comments