Skip to content

Commit 9b434eb

Browse files
committed
fix: support remote overwrites
1 parent e025658 commit 9b434eb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/features.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,12 @@ export async function setupRemote(_nuxt: Nuxt, hub: HubConfig) {
147147
})
148148

149149
// Adapt env based on project defined production branch
150-
env = (branch === project.productionBranch ? 'production' : 'preview')
150+
if (String(hub.remote) === 'true') {
151+
env = (branch === project.productionBranch ? 'production' : 'preview')
152+
} else {
153+
env = String(hub.remote)
154+
}
155+
151156
if (typeof hub.projectUrl === 'function') {
152157
hub.projectUrl = hub.projectUrl({ env, branch })
153158
}

0 commit comments

Comments
 (0)