We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94bbd59 commit c104b3bCopy full SHA for c104b3b
1 file changed
examples/deno-desktop-reader/main.ts
@@ -137,7 +137,8 @@ Deno.serve((req: Request) => {
137
138
// Static assets from dist/
139
if (pathname.startsWith("/dist/")) {
140
- const file = readFileSafe(new URL(`.${pathname}`, DIST_DIR));
+ const name = pathname.slice("/dist/".length);
141
+ const file = readFileSafe(new URL(`./${name}`, DIST_DIR));
142
return file ? serveFile(file, ext) : notFound();
143
}
144
0 commit comments