File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,8 @@ export default defineNuxtModule<ModuleOptions>({
76
76
projectSecretKey : process . env . NUXT_HUB_PROJECT_SECRET_KEY || '' ,
77
77
userToken : process . env . NUXT_HUB_USER_TOKEN || '' ,
78
78
remote : remoteArg || process . env . NUXT_HUB_REMOTE ,
79
- version
79
+ version,
80
+ env : process . env . NUXT_HUB_ENV || 'production'
80
81
} )
81
82
// validate remote option
82
83
if ( hub . remote && ! [ 'true' , 'production' , 'preview' ] . includes ( String ( hub . remote ) ) ) {
@@ -149,6 +150,8 @@ export default defineNuxtModule<ModuleOptions>({
149
150
log . error ( `No deployment found for \`${ env } \`, make sure to deploy the project using \`nuxthub deploy\`.` )
150
151
process . exit ( 1 )
151
152
}
153
+ // Update hub.env in runtimeConfig
154
+ hub . env = env
152
155
}
153
156
154
157
// Make sure we have a projectUrl when using the remote option
You can’t perform that action at this time.
0 commit comments