Skip to content

Deploy the landing page at hellonear.xyz #266

Closed

Description

@AncungAulia

@Lin1er @Lexirieru @Nabil-Aufa The landing page (apps/landing, merged in #263) isn't on the hosted demo yet.

Now (checked 12 Nov)

  • https://hellonear.xyz answers 307 to https://app.hellonear.xyz/, as deploy/README.md says it will "until that is deployed".
  • deploy/systemd/ has only hellonear-be, hellonear-engine and hellonear-fe. deploy.sh doesn't build apps/landing.
  • The landing's Choose buttons open https://app.hellonear.xyz/minds/new?template=<id>, and the app already keeps that pick through sign-in. So nothing in the app needs to change.

To deploy (James, with Axel's approval: it changes the box)

  1. Build apps/landing in deploy.sh (next build), plus a hellonear-landing.service running next start on its own port.
  2. Point the apex hellonear.xyz at that port on the tunnel host. It's currently on 3000, the web app, and apps/fe/next.config.js redirects it to app..
  3. Remove the apex redirect from apps/fe/next.config.js once the apex serves the landing (FE, mine).

Copy to check before it goes live (Nabil)

"Every payment asks you first" is true by default, but since #167 the owner can let a Mind send small payments to listed accounts without asking ("Approved by your rule"). It appears in:

  • app/layout.tsx (the page description, shown in search results and link previews)
  • components/ApprovalsScroll.tsx (the section title)
  • components/Demo.tsx ("Stay in charge")
  • components/MindGraph.tsx (the Payments Mind's line)

One option is "Every payment asks you first, unless you set a rule." Your call.

🤖 Generated with Claude Code

Activity

  1. Lin1er commented on Nov 12, 2026

    @Lin1er
    Contributor

    @Lexirieru The deploy part is ready on the branch feat/deploy-landing (3 commits, from main at 8b9f947). May I open the PR?

    What it changes

    • New deploy/systemd/hellonear-landing.service: next start on port 3100 (the web app keeps 3000), with the same hardening as hellonear-fe and MemoryMax=384M.
    • deploy/deploy.sh builds apps/landing on the deploying machine, the same way as apps/fe, and ships only its .next. The box then:
      • installs the landing's production dependencies;
      • starts and restarts hellonear-landing with the other units;
      • waits until port 3100 answers before it calls the deploy healthy.
    • Rollback stops the landing when release-old has none. The hand-edit check skips apps/landing/.next.
    • deploy/README.md and apps/landing/CLAUDE.md are updated.

    Tests

    • The landing build from a clean git archive on ct-dev passes in 14 s, and the shipped .next is 11 MB.
    • I ran it with production dependencies only, as on the box. Results:
      • home 200 (293 KB) and icon 200;
      • /hero assets 200 with the Cache-Control from next.config.ts;
      • 128 MB RSS;
      • TypeScript isn't needed at runtime.
    • DEPLOY_CHECK_ONLY=1 against the hosted box: box matches git 8b9f947, no new migrations, "would deploy 8da3255".
    • Not run: a real deploy of the branch (that needs your approval) and the apps/be integration and load tests (no backend change).

    Order after the merge, so nothing breaks

    1. The merge deploys the landing on 3100. hellonear.xyz still goes to the web app and its redirect, so nothing visible changes yet.

    2. Me, on infra I run:

      • let the tunnel host in on 3100 in the container's Proxmox firewall (today only 3000 and 4000 are open);
      • point the apex ingress rule at 3100, with a backup of the tunnel config first.

      No DNS change is needed: the apex record already goes to the tunnel.

    3. @AncungAulia removes the apex redirect from apps/fe/next.config.js (step 3 in this issue).

    Does approving the PR cover step 2 too, or do you want to approve it separately?

    Demo video: without a video URL, the demo section shows its placeholder (public/demo/ is gitignored). Once the video (#10) has a public URL, it can be set as DEPLOY_LANDING_VIDEO_URL for the deploy. It's a public value, not a secret.

    The copy question in this issue is for @Nabil-Aufa; this branch doesn't touch it.

  2. Lexirieru commented on Nov 12, 2026

    @Lexirieru
    Contributor

    @Lin1er approved by Axel:

    1. Open the PR. I'll review and test it, then merge after CI passes (that merge deploys the landing on 3100, per rule 3).
    2. Step 2 is approved together with that merge, and only after it: open 3100 to the tunnel host in the Proxmox firewall, then point the apex ingress at 3100, with a backup of the tunnel config first. Please wait for the copy below before pointing the apex. Afterwards, post on this issue:
      • hellonear.xyz shows the landing;
      • a Choose button opens app.hellonear.xyz/minds/new?template=…;
      • app.hellonear.xyz still works and health is ok;
      • the rollback (the backed-up tunnel rule).

    @Nabil-Aufa before the apex goes live, please fix the copy in the issue body: "Every payment asks you first" stopped being always true with #167 (auto-approve rules). For example: "Every payment asks you first, unless you set a rule." It appears in app/layout.tsx, components/ApprovalsScroll.tsx, components/Demo.tsx and components/MindGraph.tsx. Open a PR; Axel approves the merge.

    @AncungAulia after the apex serves the landing, please remove the apex redirect in apps/fe/next.config.js (step 3).

  3. added a commit that references this issue on Nov 12, 2026
  4. Nabil-Aufa commented on Nov 12, 2026

    @Nabil-Aufa
    Contributor

    @Lexirieru The copy is fixed in #271, using the wording from this issue ("Every payment asks you first, unless you set a rule."). It's in all four places, plus the approvals subtitle, which had the same problem ("Nothing leaves the wallet until you tap Approve"). Typecheck and build pass. Once Axel merges it, the apex can point at the landing.

    🤖 Generated with Claude Code

  5. added a commit that references this issue on Nov 12, 2026
  6. Lin1er commented on Nov 12, 2026

    @Lin1er
    Contributor

    Step 2 done (Axel's approval on #267, after #271 was merged and deployed): https://hellonear.xyz now serves the landing page. Live revision 92f1894 (includes #271).

    What changed, each with a backup first:

    1. Proxmox firewall of the box: one new rule, port 3100 open from the tunnel host only (like 3000 and 4000). Checked: 3100 answers 200 from the tunnel host and stays blocked from the rest of the LAN.
    2. Tunnel ingress: the hellonear.xyz rule now points at port 3100 instead of 3000. cloudflared ingress validate OK, and ingress rule https://hellonear.xyz/ matches 3100. No other rule changed.

    Checks after the switch:

    • https://hellonear.xyz/ → 200, the landing (title "HelloNear: a Mind that can't spend more than you allow"), with the new copy ("Every payment asks you first, unless you set a rule").
    • The three Choose links go to https://app.hellonear.xyz/minds/new?template= general-assistant, payments-mind, email-manager; each answers 200.
    • https://app.hellonear.xyz/ → 200; GET https://api.hellonear.xyz/v1/health → {"ok":true,"engine":true,"revision":"92f1894"}. hellonear.jameshub.fun still redirects to app.hellonear.xyz.
    • All four units active, 0 http error lines; try-out end to end 22/22.

    Rollback: put the hellonear.xyz rule back to port 3000 (the backed-up tunnel config) and restart cloudflared; the apex then goes back to the web app's redirect to app.hellonear.xyz. The firewall rule can stay.

    @AncungAulia the apex redirect in apps/fe/next.config.js no longer gets any traffic for hellonear.xyz, so it can be removed (#266).

  7. added a commit that references this issue on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions