mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/mihomo-party-org/clash-party.git
synced 2026-09-20 08:03:39 +08:00
fix: serve Sub-Store fallback from explicit root
This commit is contained in:
@@ -103,7 +103,7 @@ export async function startSubStoreFrontendServer(): Promise<void> {
|
||||
const frontendDir = path.join(mihomoWorkDir(), 'sub-store-frontend')
|
||||
app.use(express.static(frontendDir))
|
||||
app.use((_req, res) => {
|
||||
res.sendFile(path.join(frontendDir, 'index.html'))
|
||||
res.sendFile('index.html', { root: frontendDir })
|
||||
})
|
||||
subStoreFrontendServer = app.listen(subStoreFrontendPort, subStoreHost)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user