Serve compiled front from the same application
also add embedded build for production
This commit is contained in:
11
front/frontend_dev.go
Normal file
11
front/frontend_dev.go
Normal file
@@ -0,0 +1,11 @@
|
||||
//go:build !embed
|
||||
|
||||
package front
|
||||
|
||||
import (
|
||||
"os"
|
||||
)
|
||||
|
||||
func init() {
|
||||
Frontend = os.DirFS("./dist")
|
||||
}
|
||||
Reference in New Issue
Block a user