Skip to content

Commit a199129

Browse files
committed
✨redirect install route to specific version
1 parent 57aa7bd commit a199129

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

www/routes/pls.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import type { Handlers } from "$fresh/server.ts";
22

3+
import VERSION from "../../version.json" assert { type: "json" };
4+
35
export const handler: Handlers = {
46
GET() {
5-
const path = `https://deno.land/x/platformscript/cli/pls.ts`;
7+
const path = `https://deno.land/x/platformscript@${VERSION}/cli/pls.ts`;
68
return new Response(`Redirecting to ${path}`, {
79
headers: { "Location": path },
810
status: 307,

0 commit comments

Comments
 (0)