Skip to content

Trigger a Netlify build - #24

Open
NitzanSirota wants to merge 1 commit into
mainfrom
chore/trigger-netlify-build
Open

Trigger a Netlify build#24
NitzanSirota wants to merge 1 commit into
mainfrom
chore/trigger-netlify-build

Conversation

@NitzanSirota

Copy link
Copy Markdown
Contributor

Whitespace-only change to docs/deploy.md to trigger a Netlify deploy preview. No behavior change.

🤖 Generated with Claude Code

@netlify

netlify Bot commented Sep 2, 2026

Copy link
Copy Markdown

Deploy Preview for base44-platform-starter ready!

Name Link
🔨 Latest commit 1df9984
🔍 Latest deploy log https://app.netlify.com/projects/base44-platform-starter/deploys/6a97fdd106a85500086a9f13
😎 Deploy Preview https://deploy-preview-24--base44-platform-starter.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@NitzanSirota
NitzanSirota force-pushed the chore/trigger-netlify-build branch from 392d253 to 1df9984 Compare September 2, 2026 10:43
NitzanSirota added a commit that referenced this pull request Sep 2, 2026
Netlify answers the deploy alias, deploy-preview-N--<site>.netlify.app, but hands
the server handler the deploy permalink, <deploy-id>--<site>.netlify.app, in host
and x-forwarded-host. Derived from the request, a preview named the permalink as
the redirect proxy's forwarding target while the browser held the host-only state
cookie on the alias, so every sign-in died as

  InvalidCheck: state value could not be parsed

which is also what a missing cookie reports: parseCookie in @auth/core rewrites
every cause into that one string.

Netlify's own DEPLOY_PRIME_URL is the alias, so pin AUTH_URL to it. next.config.ts
bakes the value into the build because the function's runtime environment does not
carry Netlify's build variables. The pin applies only where no origin is set
explicitly, leaving production, which sets NEXTAUTH_URL, and local dev, which sets
neither, exactly as they were.

Measured on the live deployments: /api/auth/providers on PR #24's alias reported
the permalink as its own callback URL. Verified locally by building with
DEPLOY_PRIME_URL=http://pinned-alias.example and requesting with a permalink Host:
the decoded OAuth state carried the pinned origin, and redirect_uri stayed
production's.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
NitzanSirota added a commit that referenced this pull request Sep 2, 2026
Netlify answers the deploy alias, deploy-preview-N--<site>.netlify.app, but hands
the server handler the deploy permalink, <deploy-id>--<site>.netlify.app, in host
and x-forwarded-host. Derived from the request, a preview named the permalink as
the redirect proxy's forwarding target while the browser held the host-only state
cookie on the alias, so every sign-in died as

  InvalidCheck: state value could not be parsed

which is also what a missing cookie reports: parseCookie in @auth/core rewrites
every cause into that one string.

Netlify's own DEPLOY_PRIME_URL is the alias, so pin AUTH_URL to it. next.config.ts
bakes the value into the build because the function's runtime environment does not
carry Netlify's build variables. The pin applies only where no origin is set
explicitly, leaving production, which sets NEXTAUTH_URL, and local dev, which sets
neither, exactly as they were.

Measured on the live deployments: /api/auth/providers on PR #24's alias reported
the permalink as its own callback URL. Verified locally by building with
DEPLOY_PRIME_URL=http://pinned-alias.example and requesting with a permalink Host:
the decoded OAuth state carried the pinned origin, and redirect_uri stayed
production's.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
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