From 832587d359b7f724cd30b6324887dfa498c91b2b Mon Sep 17 00:00:00 2001 From: Vishal Rana Date: Sun, 1 Nov 2026 11:42:59 -0800 Subject: [PATCH] site: serve Go module discovery for Echo Pro from the docs Every /pro page now carries the go-import meta tag that points echo.labstack.com/pro at the module proxy go.labstack.io. go get reads it from the static site, so Echo Pro installs no longer depend on a Worker in front of the docs. --- site/src/components/Head.astro | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/site/src/components/Head.astro b/site/src/components/Head.astro index 799a9456..03feca49 100644 --- a/site/src/components/Head.astro +++ b/site/src/components/Head.astro @@ -9,5 +9,9 @@ import { Font } from 'astro:assets'; +{/* Go module discovery for `go get echo.labstack.com/pro/...`: Go fetches + any /pro page with ?go-get=1 and reads this tag, so installs work from the + static site alone. The proxy at go.labstack.io checks the customer token. */} +{isProPage(Astro.url.pathname) && } {isProPage(Astro.url.pathname) && Astro.url.pathname.replace(/\/$/, '') !== '/pro' && }