Skip to content

Serve the ouro gold app at /gold on the Vortex site - #1370

Merged
ebma merged 12 commits into
stagingfrom
feat/gold-under-vortex
Sep 14, 2026
Merged

ebma merged 12 commits into
stagingfrom
feat/gold-under-vortex

Conversation

@ebma

@ebma ebma commented Sep 11, 2026

Copy link
Copy Markdown
Member

Summary

Moves the ouro. gold app from its standalone gold.satoshipay.io deployment into this monorepo as apps/gold, served by the existing frontend Netlify site at https://www.vortexfinance.co/gold/ with a "by Vortex" endorsement.

  • apps/gold is a snapshot of pendulum-chain/vortexperiments@010d8e2 (no history); the Sites/VPS deployment scaffolding and pilot reports stay in the old repo. Gold keeps its own JS tooling (node --test, excluded from Biome) and depends on @vortexfi/sdk as workspace:*.
  • Built with Vite base: "/gold/"; the three public asset references go through import.meta.env.BASE_URL. Like /widget, the path is unprefixed; locale-prefixed variants can be added if other markets launch.
  • API base follows the frontend's VITE_SIGNING_SERVICE_PATH convention and resolves relative paths against the page origin, since the SDK builds absolute URLs and rejects a bare /api/production. Calls go through the site's /api/<env>/* proxy, so no CORS change is needed.
  • apps/frontend/netlify.toml builds Gold after the frontend and copies it into dist/client/gold/. Netlify serves those files before the non-forced 404 catch-all, so no redirect rule is added. An explicit ignore now covers apps/gold, packages/shared and packages/sdk: Netlify's default only diffs the base directory, so commits touching only those were canceled as "no content change".
  • SMS login is dropped (Google primary, e-mail in the overflow); the account menu shows the full, copyable wallet address; the page has a title and canonical link naming its Vortex home; "by Vortex" also shows in the compact header.
  • Nobody used the old origin, so there is no session or storage migration. Gold's storage keys are namespaced satoshi:* and do not collide with the widget's.

Verification

  • cd apps/gold && bun run test: 17 pass (the 16 imported tests plus one for the API base resolution).
  • Ran the Netlify build command locally minus install and loaded the built page in a browser under the prefix: all JS/CSS/font/image requests resolve, login modal and account menu render as intended, no console errors.
  • On the deploy preview: /gold/ 200 with Gold's HTML, /gold 301 to it, Gold assets 200, unknown asset 404, /, /business, /widget, /pt-BR/widget, /pt-br/widget unchanged. A Gold-only commit triggers a build (ignore rule verified).
  • bunx biome check on the touched files is clean.

Site settings (done, not in this PR)

vortexfi has VITE_PRIVY_APP_ID and VITE_DEMO_MODE=false for all contexts; VITE_SIGNING_SERVICE_PATH was already per context. The Privy app allows the preview, https://staging--vortexfi.netlify.app and https://www.vortexfinance.co origins; login on the preview was verified manually.

Snapshot of pendulum-chain/vortexperiments main (010d8e2) as a workspace
member, without history. The Sites/VPS deployment scaffolding (worker,
nginx config, prepare-sites-build postbuild, sites-worker tests, brand
source material and pilot reports) is left behind; the old repo remains
the archive for those.

Gold is plain JavaScript with its own node --test suite, so it stays on
its own tooling and is excluded from Biome. @vortexfi/sdk now resolves to
the workspace package instead of the npm 0.9.0 pin so SDK changes surface
in Gold's build.
Gold is served from the Vortex site at /pt-BR/gold, so the Vite base and
the three public asset references move under that prefix, and the
endorsement reads "by Vortex".

The API base now follows the ramp frontend's VITE_SIGNING_SERVICE_PATH
convention and resolves relative paths against the page origin, because
@vortexfi/sdk builds absolute URLs with new URL() and rejects a bare
/api/production. Going through the site's /api/<env>/* proxy also means
the API's CORS allowlist needs no new origin.
@netlify

netlify Bot commented Sep 11, 2026

Copy link
Copy Markdown

Deploy Preview for vortex-sandbox ready!

Name Link
🔨 Latest commit 9362cfb
🔍 Latest deploy log https://app.netlify.com/projects/vortex-sandbox/deploys/6aa8197f14343500081d6963
😎 Deploy Preview https://deploy-preview-1370--vortex-sandbox.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Sep 11, 2026

Copy link
Copy Markdown

Deploy Preview for vortexfi ready!

Name Link
🔨 Latest commit 9362cfb
🔍 Latest deploy log https://app.netlify.com/projects/vortexfi/deploys/6aa8197f18b89b0008ce52f4
😎 Deploy Preview https://deploy-preview-1370--vortexfi.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Sep 11, 2026

Copy link
Copy Markdown

Deploy Preview for vrtx-dashboard canceled.

Name Link
🔨 Latest commit 9362cfb
🔍 Latest deploy log https://app.netlify.com/projects/vrtx-dashboard/deploys/6aa8197ff6bf7800087d6888

The Netlify build now builds apps/gold after the frontend and copies its
output into dist/client/pt-BR/gold/, next to the prerendered locale
pages. Netlify serves those files before the non-forced 404 catch-all,
matches them case-insensitively and 301s pretty URLs to lowercase (as it
already does for /pt-BR/ -> /pt-br/), so the public /pt-br/gold/ path
needs no redirect rule.
@ebma
ebma force-pushed the feat/gold-under-vortex branch from a4bb5ed to 175f15d Compare September 11, 2026 16:01
@ebma ebma changed the title Serve the ouro gold app at /pt-BR/gold on the Vortex site Serve the ouro gold app at /pt-br/gold on the Vortex site Sep 11, 2026
@ebma
ebma force-pushed the feat/gold-under-vortex branch from a1ae9af to 3fe88fa Compare September 14, 2026 14:30
@ebma
ebma force-pushed the feat/gold-under-vortex branch from 3fe88fa to f085a40 Compare September 14, 2026 14:32
We do not want phone-number onboarding for ouro, so the login modal
offers Google first with e-mail under "Outras formas de entrar", and
the Privy provider no longer requests the sms method.
Netlify's default ignore command only diffs the site's base directory
(apps/frontend), so commits that touch only apps/gold, packages/shared
or packages/sdk are canceled as "no content change" and never reach the
published site.
…p header

The page title and canonical link name the Vortex home of Gold, and the
"by Vortex" endorsement now also shows in the compact header of the
signed-in app, sized to fit the 36px wordmark.
@ebma ebma changed the title Serve the ouro gold app at /pt-br/gold on the Vortex site Serve the ouro gold app at /gold on the Vortex site Sep 14, 2026
The menu shows a shortened address, so users could not copy their
embedded wallet address. It now has a copy button next to it and the
full address as a tooltip.
Gold has one market, so it follows the widget's convention of an
unprefixed default path; locale-prefixed variants can be added if other
markets launch. This also removes the mixed-case build directory and the
lowercase-normalisation redirect from the picture.
@ebma
ebma force-pushed the feat/gold-under-vortex branch from fe9d683 to a017b97 Compare September 14, 2026 15:27
…resolver

@hookform/resolvers has an undeclared type dependency on
@standard-schema/spec. It was never installed, so the resolver's schema
typing collapsed to any and hid two mismatches: the ramp form schema
declared fiatToken as a required key while RampFormValues has it
optional, and the fiat account form's dynamic schema produced unknown
field values. Gold's dependency tree installs @standard-schema/spec,
which made the resolver types real and typecheck fail. Type-only fix.
@ebma
ebma merged commit e49fa83 into staging Sep 14, 2026
6 checks passed
@ebma
ebma deleted the feat/gold-under-vortex branch September 16, 2026 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant