From b2e1757dfc8177dbaa184a29943b4c4c5ceffe6d Mon Sep 17 00:00:00 2001 From: Brendan Date: Thu, 17 Sep 2026 17:07:31 +0000 Subject: [PATCH] Fix Cloudflare Pages marketing deploy --- docs/marketing-app.md | 2 +- packages/marketing/wrangler.jsonc | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/marketing-app.md b/docs/marketing-app.md index 4648c109..3eeb41ff 100644 --- a/docs/marketing-app.md +++ b/docs/marketing-app.md @@ -5,7 +5,7 @@ Factorize is deployed as a 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`. - `packages/app` 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` and automatically deploys production from `main`. Preview deployments are created for pull requests. 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` 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. Run the app Worker locally with `npm run dev`. To preview the marketing package's Worker fallback locally, use `npm run dev:marketing`. diff --git a/packages/marketing/wrangler.jsonc b/packages/marketing/wrangler.jsonc index 87e3a870..194d9c35 100644 --- a/packages/marketing/wrangler.jsonc +++ b/packages/marketing/wrangler.jsonc @@ -1,9 +1,7 @@ { "$schema": "../../node_modules/wrangler/config-schema.json", "name": "factorize-marketing", - "main": "src/index.ts", "pages_build_output_dir": "./public", "compatibility_date": "2026-09-10", - "assets": { "directory": "./public", "binding": "ASSETS" }, "vars": { "APP_ORIGIN": "https://app.factorize.sh" } }