-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
I followed the instructions but couldn't get it to run -- the browser was empty. I asked the droid to help me figure it out.
Apparently, there was a problem in 'src/server/index.ts'
function contentTypeFor(pathname: string): string {
if (pathname.endsWith(".html")) return "text/html; charset=utf-8";the droid corrected it
50 function contentTypeFor(pathname: string): string { │
│ │ 51 + if (pathname === "/app") return "text/javascript; charset=utf-8"; │
│ 51 │ 52 if (pathname.endsWith(".html")) return "text/html; charset=utf-8";After that, I had to add the correct MIME type for the /app file to the contentTypeFor function.
In general, in my case, the droid helped me and here I am reporting the error that occurred in my case.
Metadata
Metadata
Assignees
Labels
No labels