Keep a minimal dist/index.html in version control so go:embed succeeds when CI checks out without a frontend build; ignore other dist artifacts. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+3
-2
@@ -23,8 +23,9 @@ data/
|
||||
# Docker local prebuilt
|
||||
.docker-bin/
|
||||
|
||||
# Frontend build output
|
||||
web/dist/
|
||||
# Frontend build output (keep placeholder for go:embed in CI / go test)
|
||||
web/dist/*
|
||||
!web/dist/index.html
|
||||
web/node_modules/
|
||||
|
||||
# Environment
|
||||
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Luminary AI Gateway</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>UI not built. Run: <code>make build-web</code></p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -2,5 +2,7 @@ package webembed
|
||||
|
||||
import "embed"
|
||||
|
||||
// Placeholder dist/index.html is committed for CI and go test; production UI comes from npm run build.
|
||||
//
|
||||
//go:embed all:dist
|
||||
var WebFS embed.FS
|
||||
|
||||
Reference in New Issue
Block a user