build: make frontend embedding optional
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
//go:build !web
|
||||
|
||||
package static
|
||||
|
||||
import (
|
||||
"io/fs"
|
||||
"os"
|
||||
)
|
||||
|
||||
func GetFS() fs.FS {
|
||||
return nil
|
||||
}
|
||||
|
||||
func ReadFile(name string) ([]byte, error) {
|
||||
return nil, os.ErrNotExist
|
||||
}
|
||||
Reference in New Issue
Block a user