You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constmsg=`Cannot deploy site ${config.site} to channel ${context.hostingChannel} because it would modify one or more rewrites in "live" that are not pinned, breaking production. Please pin "live" before pinning other channels.`;
117
+
constmsg=
118
+
`Cannot deploy site ${clc.bold(config.site)} to channel `+
119
+
`${clc.bold(context.hostingChannel!)} because it would modify one or `+
120
+
`more rewrites in "live" that are not pinned, breaking production. `+
121
+
`Please pin "live" before pinning other channels.`;
107
122
utils.logLabeledError("Hosting",msg);
108
123
thrownewError(msg);
109
124
}
125
+
construnPins=config.rewrites
126
+
?.filter((r)=>"run"inr&&r.run.pinTag)
127
+
?.map((r)=>(rasRunRewrite).run.serviceId);
128
+
if(runPins?.length){
129
+
utils.logLabeledBullet(
130
+
"hosting",
131
+
`The site ${clc.bold(config.site)} will pin rewrites to the current `+
132
+
`latest revision of service(s) ${runPins.map(clc.bold).join(",")}`
0 commit comments