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 2788097 commit 4201b31Copy full SHA for 4201b31
client/bin/cli.js
@@ -9,7 +9,10 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
9
const distPath = join(__dirname, "../dist");
10
11
const server = http.createServer((request, response) => {
12
- return handler(request, response, { public: distPath });
+ return handler(request, response, {
13
+ public: distPath,
14
+ rewrites: [{ source: "/**", destination: "/index.html" }],
15
+ });
16
});
17
18
const port = process.env.PORT || 5173;
0 commit comments