Skip to content

Commit

Permalink
fix: support remote overwrites
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Jul 31, 2024
1 parent e025658 commit 9b434eb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,12 @@ export async function setupRemote(_nuxt: Nuxt, hub: HubConfig) {
})

// Adapt env based on project defined production branch
env = (branch === project.productionBranch ? 'production' : 'preview')
if (String(hub.remote) === 'true') {
env = (branch === project.productionBranch ? 'production' : 'preview')
} else {
env = String(hub.remote)
}

if (typeof hub.projectUrl === 'function') {
hub.projectUrl = hub.projectUrl({ env, branch })
}
Expand Down

0 comments on commit 9b434eb

Please sign in to comment.