Skip to content

Commit

Permalink
test: use better variables
Browse files Browse the repository at this point in the history
  • Loading branch information
0-vortex committed Mar 11, 2022
1 parent c88cf9e commit 39c3d2d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vite.config.ts
Expand Up @@ -136,8 +136,9 @@ export default defineConfig(({command, mode}: ConfigEnv): UserConfig => {
// this might need manual intervention on custom domains
// leaving it like this to be extended or simplified
if (isNetlifyChannelBuild && ['alpha', 'beta'].includes(process.env.CHANNEL)) {
console.log(process.env);
config.base = `${process.env.DEPLOY_PRIME_URL}/`;
const { protocol, hostname } = new URL(process.env.URL);
config.base = `${protocol}/${process.env.CHANNEL}.${hostname}/`;
console.log(config.base);
}
}

Expand Down

0 comments on commit 39c3d2d

Please sign in to comment.