Skip to content

Commit

Permalink
fix: 静态资源路径错误
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-cn committed Dec 29, 2023
1 parent 97aac1b commit 07fc337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class App extends Koa {
name:this.config.username,
pass:this.config.password
}))
.use(koaStatic(path.join(process.cwd(),'dist')))
.use(koaStatic(path.resolve(__dirname,'../dist')))
this.httpServer = createServer(this.callback())
this.ws=this.router.ws('/',this.httpServer)

Expand Down

0 comments on commit 07fc337

Please sign in to comment.