feat: deploy main to staging and tag reports with their environment - #16
Merged
Merged
Conversation
- Add branded header, badges and project principles - Clarify local image processing and link Pixelact Studio
…s credits (#10) - Direct the Studio section as GSAP scenes started by ScrollTrigger (ADR 0009) - Nest card corners: 12px cards with 4-6px corners inside - Light the footer wordmark under the pointer and credit Damn Labs and Pixelact Studio - Link hexlode.damnlabs.com from the README
- Add Release Please versioning and image publishing - Upload Sentry source maps and enable logs and tracing - Improve privacy-safe PostHog autocapture and deployment docs
- Keep the `main` image for unreleased merges - Publish `latest` and deploy via Dokploy on releases - Update deployment documentation
- Add per-tab session drafts with one-day recovery for unsaved work - Add new/save controls and confirmation before discarding changes - Document draft storage and privacy behavior
- Label analytics and Sentry reports by deployment environment - Document staging and production Dokploy setup
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.
Summary
Adds a staging deployment so merged changes can be tested before a release, and keeps staging traffic out of production analytics and error reports.
Deployments
mainpublishes themainimage and deploys the staging Dokploy application through the newDOKPLOY_STAGING_WEBHOOK_URLsecret.latestand the version tags and deploys production throughDOKPLOY_WEBHOOK_URL.deploy staginganddeploy production, each skipped until its secret is set.Environment tagging
HEXLODE_ENVIRONMENT. Staging sets it tostaging; when unset, the server reportsproduction(ordevelopmentlocally).production.environmentproperty to every event, next toapp_version, so PostHog's test-account filter can hide staging and development from dashboards.Docs
DEPLOY.md: new "Staging and production" section, the Sentry alert and PostHog filter setup, andHEXLODE_ENVIRONMENTin the variable table.implementation.mdand ADR 0005 describe the staging flow and theenvironmentproperty.Setup after merging
ghcr.io/pixelactstudio/hexlode:main, its own HTTPS domain, the same PostHog and Sentry variables as production, plusHEXLODE_ENVIRONMENT=staging.environmentis notstagingandenvironmentis notdevelopment, and enable it on all new insights.productionenvironment.Testing
pnpm validate: Biome, types, 556 unit and browser tests, and the production build.HEXLODE_ENVIRONMENT(including the production default and invalid values), passing it to Sentry, and registering it on PostHog events.HEXLODE_ENVIRONMENT=stagingthe page config reportsstaging, and without it reportsproduction.Merge note
devhad drifted frommainbecause earlier PRs were squash-merged, which caused the conflicts here.mainis now merged intodevwithdev's content kept; that content already included everything onmain.Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.