You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
//go:build prod
|
|
// +build prod
|
|
|
|
package ui
|
|
|
|
import (
|
|
"embed"
|
|
"io/fs"
|
|
)
|
|
|
|
//go:embed frontend/dist
|
|
var embedFrontend embed.FS
|
|
|
|
func getFrontendAssets() fs.FS {
|
|
f, err := fs.Sub(embedFrontend, "frontend/dist")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
|
|
return f
|
|
}
|