fix panic

This commit is contained in:
0xJacky 2022-02-18 00:16:02 +08:00
parent d09f484790
commit 08d3fbe0ff

View file

@ -54,7 +54,7 @@ func (f serverFileSystemType) Exists(prefix string, path string) bool {
func mustFS(dir string) (serverFileSystem static.ServeFileSystem) { func mustFS(dir string) (serverFileSystem static.ServeFileSystem) {
sub, err := fs.Sub(frontend.DistFS, filepath.Join("public", dir)) sub, err := fs.Sub(frontend.DistFS, filepath.Join("dist", dir))
if err != nil { if err != nil {
log.Println(err) log.Println(err)