diff --git a/www/routes/pls.tsx b/www/routes/pls.tsx index fc418e8..a667df1 100644 --- a/www/routes/pls.tsx +++ b/www/routes/pls.tsx @@ -1,8 +1,10 @@ import type { Handlers } from "$fresh/server.ts"; +import VERSION from "../../version.json" assert { type: "json" }; + export const handler: Handlers = { GET() { - const path = `https://deno.land/x/platformscript/cli/pls.ts`; + const path = `https://deno.land/x/platformscript@${VERSION}/cli/pls.ts`; return new Response(`Redirecting to ${path}`, { headers: { "Location": path }, status: 307,