WIP: test: posthog preview site (do not merge) #4
No reviewers
Labels
No labels
needs/docs
needs/research
needs/upstream
type/bug
type/external
type/feature
type/refactor
urgency
high
urgency
immediate
urgency
low
urgency
medium
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ScottyLabs/maps!4
Loading…
Reference in a new issue
No description provided.
Delete branch "test/posthog-preview"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Test-only. Do not merge. This PR exists so kennel deploys a preview site for checking the PostHog integration from ScottyLabs/maps#3.
What it adds on top of #3
flake.niximports kennel's flake module and servesapps/webas an SPA siteweb, withpreviewDeployments = true.nix/web.nixbuilds the Vite app with bun, using a fixed-outputnode_modulesderivation pinned tobun.lock.secretspec.tomlpublishesPUBLIC_POSTHOG_KEYas arefto thesecretspec/maps/prod/POSTHOG_KEYthat governance writes, plusPUBLIC_POSTHOG_HOST(defaulthttps://v.scottylabs.org). The web app reads both from/_kennel/env.json.Expected on the preview
map_view_changedevent and autocapture.VITE_SERVER_URLis a placeholder and there's no MapKit token, so the API, sign-in, search, navigation and map tiles won't work.Verified locally
webSPA site withpreview_deployments: true.node_moduleshash matched across cold and warm installs./_kennel/env.jsonand sends$pageviewandmap_view_changedtov.scottylabs.org.Known
hookscheck fails on formatting of existing docs. It doesn't block kennel, which deploys fromchecks.x86_64-linux.kennel.PUBLIC_POSTHOG_KEYresolves empty and the site sends nothing.Kennel Deployments
Last updated for commit
a294e4e.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.