Skip to content

Commit 73ba1dd

Browse files
committed
Gate the custom collection metadata to staging until the blog post is live.
1 parent 7fc8bec commit 73ba1dd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/App/Views/PackageController/GetRoute.Model+ext.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,10 @@ extension API.PackageController.GetRoute.Model {
399399
}
400400

401401
func customCollectionsListItem() -> Node<HTML.ListContext> {
402+
@Dependency(\.environment) var environment
403+
guard environment.current() == .development
404+
else { return .empty }
405+
402406
guard customCollections.isEmpty == false
403407
else { return .empty }
404408

0 commit comments

Comments
 (0)