Skip to content

Commit

Permalink
use dist instead of build due to switch to parcel
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrews committed Apr 17, 2023
1 parent 319febd commit 10d0474
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (

var (
// use go embed to package up the webServerFiles
//go:embed web/build
//go:embed web/dist
webServerFiles embed.FS

// use go embed to serve up the defaultConfigFile
Expand Down Expand Up @@ -100,7 +100,7 @@ func main() {
e.GET("/settings/syntax", c.GetSettingsSyntax)

// package up the built web files and serve them to the clients
fsys, err := fs.Sub(webServerFiles, "web/build")
fsys, err := fs.Sub(webServerFiles, "web/dist")
if err != nil {
panic(fmt.Errorf("error loading the web files into the server. error msg: %s", err))
}
Expand Down

0 comments on commit 10d0474

Please sign in to comment.