Fix CI go test by committing embed placeholder for web/dist.
CI / docker (push) Failing after 2m2s

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:
renjue
2026-06-23 21:13:39 +08:00
parent a831012c48
commit 3c2285922e
3 changed files with 16 additions and 2 deletions
+3 -2
View File
@@ -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
+11
View File
@@ -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
View File
@@ -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