Hi,
I’ve been trying to deploy an edge function. I follow the hello_world example from the blog and it works. However, when I try to read environment variable from Netlify, it failed.
https://xindian.netlify.app/test
This is the code learn/hello.js at master · Bojne/learn · GitHub and I attempt to follow this Deno doc on reading env var. https://deno.land/x/dotenv
I’d like to know if it is possible to read env var at edge function?
Deploy log id: 62602b5ff152f30008c12b7f
Deploy log:
5:49:16 PM: Error: file system access error (code 42), id:6fa8a341-0709-4982-ac16-c098093dbe78
at async Object.readFile (deno:deploy/js/02_fs.js:53:12)
at async parseFileAsync (netlify:bundle-combined:940:54)
at async configAsync (netlify:bundle-combined:887:18)
at async netlify:bundle-combined:999:1
5:49:16 PM: Error: file system access error (code 42), id:6e85cc79-b622-4b4c-9115-f87bb3f68c84
at async Object.readFile (deno:deploy/js/02_fs.js:53:12)
at async parseFileAsync (netlify:bundle-combined:940:54)
at async configAsync (netlify:bundle-combined:887:18)
at async netlify:bundle-combined:999:1
5:53:38 PM: Error: file system access error (code 42), id:f5bcaf2b-8b21-4bb4-a90c-fad6b6c7bd67
at async Object.readFile (deno:deploy/js/02_fs.js:53:12)
at async parseFileAsync (netlify:bundle-combined:940:54)
at async configAsync (netlify:bundle-combined:887:18)
at async netlify:bundle-combined:999:1
5:53:38 PM: Error: file system access error (code 42), id:8ce28dae-5880-4510-a3fc-14fd64efb281
at async Object.readFile (deno:deploy/js/02_fs.js:53:12)
at async parseFileAsync (netlify:bundle-combined:940:54)
at async configAsync (netlify:bundle-combined:887:18)
at async netlify:bundle-combined:999:1