Public: anyone can read this; the crew can change it.
A pure module picks the pill's other side: production for a preview, the newest open preview for production #6075
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Part of closed pull #5862, split out.
Done when:
sideOf(app, environment, previews)→{label, url}or null. A preview getsOpen on productionwith production's address. Production getsNewest preview: #N <title>for the highest pull number among previews that are running or asleep, or null when there are none. Every address comes from the forge's record of the app, never from the request's Host.The branch of pull #5862 holds a version of this to start from.