diff --git a/client/bin/cli.js b/client/bin/cli.js index ae4967f..7dc93ea 100755 --- a/client/bin/cli.js +++ b/client/bin/cli.js @@ -9,7 +9,10 @@ const __dirname = dirname(fileURLToPath(import.meta.url)); const distPath = join(__dirname, "../dist"); const server = http.createServer((request, response) => { - return handler(request, response, { public: distPath }); + return handler(request, response, { + public: distPath, + rewrites: [{ source: "/**", destination: "/index.html" }], + }); }); const port = process.env.PORT || 5173;