Skip to content

Commit 8dffecb

Browse files
authored
Add vanity imports for grpcreflect-go and grpchealth-go (#420)
This adds a vanity import path for as part of [connect-go v2](connectrpc/connect-go#951) for modules `connectrpc.com/grpchealth/v2` and `connectrpc.com/grpcreflect/v2`. Related to #402 and #383 Depends on connectrpc/grpcreflect-go#99 and connectrpc/grpchealth-go#89 Signed-off-by: Edward McFarlane <emcfarlane@buf.build>
1 parent fac0603 commit 8dffecb

3 files changed

Lines changed: 44 additions & 0 deletions

File tree

‎public/grpchealth-v2.html‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta
5+
name="go-import"
6+
content="connectrpc.com/grpchealth/v2 git https://github.com/connectrpc/grpchealth-go"
7+
/>
8+
<meta
9+
http-equiv="refresh"
10+
content="0; url=https://pkg.go.dev/connectrpc.com/grpchealth/v2"
11+
/>
12+
</head>
13+
<body>
14+
API documentation for <code>connectrpc.com/grpchealth/v2</code> is on
15+
<a href="https://pkg.go.dev/connectrpc.com/grpchealth/v2">pkg.go.dev</a>.
16+
</body>
17+
</html>

‎public/grpcreflect-v2.html‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta
5+
name="go-import"
6+
content="connectrpc.com/grpcreflect/v2 git https://github.com/connectrpc/grpcreflect-go"
7+
/>
8+
<meta
9+
http-equiv="refresh"
10+
content="0; url=https://pkg.go.dev/connectrpc.com/grpcreflect/v2"
11+
/>
12+
</head>
13+
<body>
14+
API documentation for <code>connectrpc.com/grpcreflect/v2</code> is on
15+
<a href="https://pkg.go.dev/connectrpc.com/grpcreflect/v2">pkg.go.dev</a>.
16+
</body>
17+
</html>

‎vercel.json‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,21 @@
5757
"destination": "/grpchealth.html",
5858
"permanent": true
5959
},
60+
{
61+
"source": "/grpchealth/v2/",
62+
"destination": "/grpchealth-v2.html",
63+
"permanent": true
64+
},
6065
{
6166
"source": "/grpcreflect/",
6267
"destination": "/grpcreflect.html",
6368
"permanent": true
6469
},
70+
{
71+
"source": "/grpcreflect/v2/",
72+
"destination": "/grpcreflect-v2.html",
73+
"permanent": true
74+
},
6575
{
6676
"source": "/otelconnect/",
6777
"destination": "/otelconnect.html",

0 commit comments

Comments
 (0)