forked from cadey/xesite
backend: use asarfs as http.FileSystem
This commit is contained in:
parent
6e292d4d1d
commit
90d7b60828
|
@ -141,7 +141,7 @@ func main() {
|
||||||
log.Fatal("frontend: ", err)
|
log.Fatal("frontend: ", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
http.Handle("/dist/", fe)
|
http.Handle("/dist/", http.FileServer(fe))
|
||||||
} else {
|
} else {
|
||||||
log.Println("serving site frontend from filesystem")
|
log.Println("serving site frontend from filesystem")
|
||||||
http.Handle("/dist/", http.FileServer(http.Dir("./frontend/static/")))
|
http.Handle("/dist/", http.FileServer(http.Dir("./frontend/static/")))
|
||||||
|
|
Loading…
Reference in New Issue