Serve compiled front from the same application

also add embedded build for production
This commit is contained in:
2026-02-11 01:12:53 +01:00
parent 8fc5ff84c2
commit e127088195
28 changed files with 200 additions and 130 deletions

11
front/frontend_dev.go Normal file
View File

@@ -0,0 +1,11 @@
//go:build !embed
package front
import (
"os"
)
func init() {
Frontend = os.DirFS("./dist")
}