generated from CubeCraft-Creations/Tracehound
8387a4208f
cmd/server/main.go has //go:embed all:src/dist (relative to cmd/server/), but Vite built to repo-root dist/, so cmd/server/src/dist never existed and every `go build` failed with "pattern all:src/dist: no matching files found". The hub binary has never built in CI as a result. - vite.config.ts: outDir -> cmd/server/src/dist (emptyOutDir) - commit cmd/server/src/dist/index.html placeholder so the embed always has a file (real build overwrites it) - .gitignore: scope dist ignore to /dist; ignore cmd/server/src/dist/* but keep the index.html placeholder (the prior !src/dist/index.html rule pointed at the wrong path) - ci.yaml: upload artifact from the new output path Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
40 lines
606 B
Plaintext
40 lines
606 B
Plaintext
# Logs
|
|
logs
|
|
*.log
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
yarn-error.log*
|
|
pnpm-debug.log*
|
|
lerna-debug.log*
|
|
|
|
# Dependencies
|
|
node_modules
|
|
/dist
|
|
dist-ssr
|
|
*.local
|
|
|
|
# Frontend build output — embedded into the Go binary at build time.
|
|
# Vite writes here (cmd/server/src/dist); ignore the built output but keep
|
|
# the committed index.html placeholder so //go:embed always has a file.
|
|
cmd/server/src/dist/*
|
|
!cmd/server/src/dist/index.html
|
|
|
|
# Environment files
|
|
.env
|
|
.env.local
|
|
.env.*.local
|
|
|
|
# Editor directories and files
|
|
.vscode/*
|
|
!.vscode/extensions.json
|
|
.idea
|
|
.DS_Store
|
|
*.suo
|
|
*.ntvs*
|
|
*.njsproj
|
|
*.sln
|
|
*.sw?
|
|
|
|
# Vite
|
|
.vite
|