Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
deploy:
if: github.event_name != 'workflow_dispatch' || !inputs.validate_conditions_only
name: Deploy app and marketing site
name: Deploy app
runs-on: ubuntu-latest
timeout-minutes: 15
environment: production
Expand Down Expand Up @@ -94,11 +94,6 @@ jobs:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
POSTMARK_SERVER_TOKEN: ${{ secrets.POSTMARK_SERVER_TOKEN }}
- name: Deploy marketing site
run: npm run deploy:marketing
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
- name: Deploy app Worker
run: npm run deploy:prepared --workspace=factorize
env:
Expand Down
8 changes: 4 additions & 4 deletions docs/marketing-app.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Marketing site and app

Factorize is deployed as a Cloudflare Pages site and an app Worker:
Factorize is deployed as an independently maintained Cloudflare Pages site and an app Worker:

- `packages/marketing` owns the public landing page at `https://factorize.sh`. It is a static Cloudflare Pages project named `factorize-marketing`; its production branch is `main` and its output directory is `packages/marketing/public`. It contains no authenticated APIs or tenant data. Login and Create a Job links cross to `https://app.factorize.sh`.
- [GenerationSoftware/Factorize.sh](https://github.com/GenerationSoftware/Factorize.sh) owns the public landing page at `https://factorize.sh`. It is a static Cloudflare Pages project named `factorize-sh`; its production branch is `main` and its output directory is `public`. It contains no authenticated APIs or tenant data. Login and Create a Job links cross to `https://app.factorize.sh`.
- `packages/api` owns the authenticated dashboard, OAuth callbacks, API/MCP endpoints, provider webhooks, and job deep links at `https://app.factorize.sh`. Its `/` route is the signed-out login entry point and redirects signed-in users to `/jobs`.

The Pages project is connected to `GenerationSoftware/factorize` for pull request previews, but Cloudflare's automatic production deployments are disabled. Production deploys from `main` run through `.github/workflows/deploy.yml`, where failures are visible in GitHub Actions. For a manual deployment, authenticate Wrangler and run `npm run deploy:marketing`; this uploads `packages/marketing/public` to the `factorize-marketing` project.
The Pages project is connected to `GenerationSoftware/Factorize.sh`. Cloudflare automatically builds (`npm run build`) and deploys pushes to `main` and creates branch previews. This repository's GitHub Actions workflow deploys only the app; it must not upload marketing assets. The former `factorize-marketing` Pages project is retained for rollback with automatic deployments disabled.

Run the app Worker locally with `npm run dev`. To preview the marketing package's Worker fallback locally, use `npm run dev:marketing`.
Run the app Worker locally with `npm run dev`. To work on the marketing site, clone its repository and run `npm ci` and `npm run dev` there.

The Pages custom domain is `factorize.sh`. Cloudflare manages HTTPS and redirects HTTP to HTTPS. The apex DNS record is proxied to Pages; the existing proxied `app.factorize.sh` record is retained unchanged.

Expand Down
7 changes: 4 additions & 3 deletions docs/package-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ prefix and never reads API secrets. Regenerate the development certificate after

- `npm run generate`: OpenAPI then generated client; drift is checked in CI.
- `npm run build:app`: static production output. `build:css` is a compatibility alias.
- `npm run build`: frontend and marketing production builds.
- `npm run build`: frontend production build.
- `npm run check`: hosting/infrastructure/deployment gates, package boundaries, generated
client, TypeScript, compiled browser suites, API tests, actual local Cloudflare routing,
real OAuth/device/REST/MCP protocol round trips when AUTH_TEST_DATABASE_URL is set,
Expand All @@ -119,8 +119,9 @@ prefix and never reads API secrets. Regenerate the development certificate after
- `npm run test:static-slice --workspace=factorize`: compiled React through actual Worker
routing/dispatcher/repositories and disposable PostgreSQL. Build app first; set
AUTH_TEST_DATABASE_URL to a disposable local admin database.
- `npm run validate --workspace=factorize-docs` and `npm run build:marketing` preserve docs/
marketing checks. Tail relay remains independently deployable.
- `npm run validate --workspace=factorize-docs` preserves documentation checks.
Marketing builds and deploys independently in `GenerationSoftware/Factorize.sh`.
Tail relay remains independently deployable.

The protocol runtime test uses an isolated local KV directory and disposable PostgreSQL,
actual dynamic client registration, signed owner sessions, PKCE consent, device approval,
Expand Down
16 changes: 0 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
],
"scripts": {
"dev": "npm run build:app && node scripts/dev.mjs",
"dev:marketing": "npm run dev --workspace=factorize-marketing",
"build:marketing": "npm run build:marketing --workspace=factorize-marketing",
"build:css": "npm run build:app",
"test": "node scripts/validation.mjs all",
"test:backend": "node scripts/validation.mjs backend",
Expand All @@ -18,10 +16,9 @@
"check": "npm test",
"bootstrap:test": "node scripts/bootstrap-test.mjs",
"test:local": "node scripts/bootstrap-test.mjs --test",
"check:backend": "npm run check:hosting && npm run check:boundaries && npm run check:client && npm run validate --workspace=factorize-docs && npm run check --workspace=factorize && npm run test:conditions-runtime && npm run test:hosting-runtime && npm run test:oauth-runtime && npm run test:rollback-runtime && npm run check --workspace=factorize-marketing && npm run check --workspace=factorize-tail-relay",
"check:backend": "npm run check:hosting && npm run check:boundaries && npm run check:client && npm run validate --workspace=factorize-docs && npm run check --workspace=factorize && npm run test:conditions-runtime && npm run test:hosting-runtime && npm run test:oauth-runtime && npm run test:rollback-runtime && npm run check --workspace=factorize-tail-relay",
"check:frontend": "npm run check --workspace=factorize-app",
"deploy": "npm run deploy:marketing && npm run deploy:app && npm run deploy:tail-relay",
"deploy:marketing": "npm run deploy --workspace=factorize-marketing",
"deploy": "npm run deploy:app && npm run deploy:tail-relay",
"deploy:app": "npm run deploy --workspace=factorize",
"deploy:tail-relay": "npm run deploy --workspace=factorize-tail-relay",
"generate:openapi": "npm run generate:openapi --workspace=factorize",
Expand All @@ -33,7 +30,7 @@
"check:client": "npm run check --workspace=factorize-api-client",
"check:boundaries": "node --test scripts/check-package-boundaries.test.mjs && node scripts/check-package-boundaries.mjs",
"generate": "npm run generate:openapi && npm run generate:client",
"build": "npm run build:app && npm run build:marketing",
"build": "npm run build:app",
"check:hosting": "node --test scripts/hosting-invariants.test.mjs scripts/deployment-gate.test.mjs scripts/trusted-app-release.test.mjs && python3 scripts/test-retain-app-assets.py",
"test:hosting-runtime": "node --test scripts/hosting-runtime.test.mjs",
"test:oauth-runtime": "node --test scripts/oauth-runtime.test.mjs",
Expand Down
14 changes: 0 additions & 14 deletions packages/marketing/package.json

This file was deleted.

Binary file removed packages/marketing/public/android-chrome-192x192.png
Binary file not shown.
Binary file removed packages/marketing/public/android-chrome-512x512.png
Binary file not shown.
Binary file removed packages/marketing/public/apple-touch-icon.png
Binary file not shown.
1 change: 0 additions & 1 deletion packages/marketing/public/bee-mark.svg

This file was deleted.

Binary file removed packages/marketing/public/favicon-16x16.png
Binary file not shown.
Binary file removed packages/marketing/public/favicon-32x32.png
Binary file not shown.
Binary file removed packages/marketing/public/favicon-48x48.png
Binary file not shown.
Binary file removed packages/marketing/public/favicon.ico
Binary file not shown.
21 changes: 0 additions & 21 deletions packages/marketing/public/index.html

This file was deleted.

9 changes: 0 additions & 9 deletions packages/marketing/public/llms.txt

This file was deleted.

19 changes: 0 additions & 19 deletions packages/marketing/public/site.webmanifest

This file was deleted.

1 change: 0 additions & 1 deletion packages/marketing/public/styles.css

This file was deleted.

21 changes: 0 additions & 21 deletions packages/marketing/src/index.ts

This file was deleted.

4 changes: 0 additions & 4 deletions packages/marketing/tsconfig.json

This file was deleted.

7 changes: 0 additions & 7 deletions packages/marketing/wrangler.jsonc

This file was deleted.

Loading