You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to be able to fetch github repositories using the file:// protocol, like deno 1.16.
Currently "PermissionDenied: Read access not allowed" error occurs. The code I tried is here.
According to the issue comments, fetching local files seems to have worked in the past. Was this intentionally removed? Or is my code wrong?
The text was updated successfully, but these errors were encountered:
ayame113
changed the title
Supports fetch for files in github repository
Supports fetch for files in github repository with file:// protocol
Nov 15, 2021
@ayame113, fetch() now supports file:// URLs in deploy. With a project linked to GitHub, the following source in main.ts should work:
import{serve}from"https://deno.land/std@0.114.0/http/server.ts";functionhandler(req: Request): Promise<Response>{// Note: import.meta.url is a file:// URL.returnfetch(newURL("./main.ts",import.meta.url));}console.log("Listening on http://localhost:8000");awaitserve(handler);
It would be nice to be able to fetch github repositories using the
file://
protocol, like deno 1.16.Currently "PermissionDenied: Read access not allowed" error occurs. The code I tried is here.
According to the issue comments, fetching local files seems to have worked in the past. Was this intentionally removed? Or is my code wrong?
The text was updated successfully, but these errors were encountered: