From 3c2285922e21be555e8e4be3218709d11cd0616c Mon Sep 17 00:00:00 2001 From: renjue Date: Tue, 23 Jun 2026 21:13:39 +0800 Subject: [PATCH] Fix CI go test by committing embed placeholder for web/dist. 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 --- .gitignore | 5 +++-- web/dist/index.html | 11 +++++++++++ web/static_embed.go | 2 ++ 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 web/dist/index.html diff --git a/.gitignore b/.gitignore index 632e180..f6a427b 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/web/dist/index.html b/web/dist/index.html new file mode 100644 index 0000000..4eb0b88 --- /dev/null +++ b/web/dist/index.html @@ -0,0 +1,11 @@ + + + + + + Luminary AI Gateway + + +

UI not built. Run: make build-web

+ + diff --git a/web/static_embed.go b/web/static_embed.go index e64bd0a..d7dd86e 100644 --- a/web/static_embed.go +++ b/web/static_embed.go @@ -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