Embed frontend assets into Go binary for single-process deployment#30
Open
XUJiahua wants to merge 8 commits intoseifghazi:mainfrom
Open
Embed frontend assets into Go binary for single-process deployment#30XUJiahua wants to merge 8 commits intoseifghazi:mainfrom
XUJiahua wants to merge 8 commits intoseifghazi:mainfrom
Conversation
XUJiahua
commented
Feb 28, 2026
- Embed frontend assets into Go binary for single-process deployment
- Add proxy detection logging and Claude Code usage hint on startup
- Add GoReleaser config and GitHub Actions release workflow
Replace the two-process architecture (Go proxy + Remix SSR server) with a single Go binary that serves embedded frontend assets. This simplifies deployment, removes the Node.js runtime dependency in production, and eliminates the need for a docker-entrypoint script. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Log detected HTTP/HTTPS proxy environment variables at startup to help diagnose connectivity issues, and print a quick-start command for connecting Claude Code to the proxy server. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Automates cross-platform binary builds (linux/darwin, amd64/arm64) on tag push using goreleaser-cross-action for CGO cross-compilation (needed by mattn/go-sqlite3). The workflow builds frontend assets and embeds them before compiling. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
goreleaser-cross-action does not exist as a GitHub Action. Use the goreleaser-cross Docker image (ghcr.io/goreleaser/goreleaser-cross:v1.22.7) directly via docker run, matching the official example pattern. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The v1.22.7 image ships GoReleaser v1 which doesn't support the version 2 config format (formats field). Go 1.23+ images bundle GoReleaser v2. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The go mod tidy hook runs from the project root where there is no go.mod. The build config already sets dir: proxy to handle this. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The override approach caused linux/arm64 to use the wrong assembler. Switch to separate build entries per goos/goarch with explicit CC and CXX env vars, matching the official goreleaser-cross example pattern. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The Anthropic API accepts the system parameter as either a plain string or an array of system message objects. Add custom UnmarshalJSON to handle both formats, and log raw request body on JSON parse errors for debugging. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.