deploy_feedback icon indicating copy to clipboard operation
deploy_feedback copied to clipboard

[Bug]: GH Action is stuck at 'Assets written to: /home/runner/work/tran-ky/tran-ky/Web/_fresh'

Open ooker777 opened this issue 1 year ago • 1 comments

I put the example-redirect code in index.tsx:

import { serve } from "https://deno.land/[email protected]/http/server.ts";

function handler(_req: Request) {
  return Response.redirect("https://example.com", 307);
}

serve(handler);

(test repo)

GitHub Action is unable to build my commit. It runs for 6 hours and then being canceled. It keeps stuck at this line:

Download https://deno.land/x/[email protected]/lib/snippets/deno_graph-de651bc9c240ed8d/src/deno_apis.js
Download https://deno.land/x/[email protected]/lib/media_type.ts
Download https://deno.land/x/[email protected]/wasm.d.ts
Assets written to: /home/runner/work/tran-ky/tran-ky/Web/_fresh

Do you know what happens?

ooker777 avatar Feb 03 '24 00:02 ooker777

It seems that using export works. I suppose the legacy code won't work any more? Why is that?

export function handler(_req: Request) {
  return Response.redirect("https://example.com", 307);
}

ooker777 avatar Feb 03 '24 09:02 ooker777