cli: fix frontend serving without a public folder
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user