Niranjan Ramesh
Niranjan Ramesh
DDeno
Created by Niranjan Ramesh on 12/8/2023 in #help
Serving static website
I have a static website with an index.html that imports a main.js and css file. When serving index.html with Deno using Deno.readFile("./dist/index.html"), I get a blank page with errors in the console for the main.js file that it references. Do I have to define all paths and return the corresponsing paths? Is there no straightforward way to do this by just passing the directory?
6 replies