Skip to content

Commit bfc678c

Browse files
committed
ci: replaced custom domain for routes in feature branches when deploying through scripts/deploy.js
1 parent 68e56f7 commit bfc678c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

scripts/deploy.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,8 @@ async function main(argv = process.argv) {
5656
wranglerConfig.env[feature] = {
5757
name: `${wranglerConfig.name}-${feature}`,
5858
routes: [
59-
{
60-
pattern: `${feature}.${wranglerConfig.routes[0].pattern}`,
61-
custom_domain: true,
62-
},
59+
`${feature}.${wranglerConfig.routes[0].pattern}`,
60+
`${feature}.${wranglerConfig.routes[1].pattern}`,
6361
],
6462
};
6563
fs.writeFileSync('./wrangler.toml', TOML.stringify(wranglerConfig), {

0 commit comments

Comments
 (0)