cli: fix frontend serving without a public folder

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-08-10 16:26:34 +02:00
parent c7be91b571
commit 8f1a12fb7a
+1 -1
View File
@@ -52,7 +52,7 @@ export async function serveBundle(options: ServeOptions) {
},
static: {
publicPath: config.output?.publicPath as string,
directory: paths.targetPublic,
directory: paths.targetPublic ?? '/',
},
historyApiFallback: {
// Paths with dots should still use the history fallback.