Open dion-sony opened 1 year ago
You are just pointing the static files directory. The system does not know that the route "/" is equivalent to "index.html". You also have to indicate the root route. I believe this might work: server.get( "/", async (ctx: any, next: any) => { ctx.redirect("/index.html"); await next(); }, );
Or, also, using the redirection middleware: server.get( "/", redirect("/Index.html"), );
./dist
is a regular web app, with./dist/index.html
and other assets. This content is served by other file servers no problem.This fails: with the browser pointing to http://localhost:3000