Skip to content

Sites deployment falsely reports nodejs_compat flag after it was removed #36820

Description

@scrancj

Product surface

ChatGPT Sites deployment from the Codex desktop app.

Summary

A valid saved Sites version cannot be deployed because the publishing service reports that nodejs_compat is explicitly present and has become the default as of 2026-08-04. The packaged worker metadata does not contain that flag.

Steps to reproduce

  1. Build an existing vinext Sites project successfully.
  2. Remove compatibility_flags: ["nodejs_compat"] from the local Cloudflare configuration.
  3. Confirm the packaged dist/server/wrangler.json contains:
    • "compatibility_date":"2026-05-15"
    • "compatibility_flags":[]
  4. Save the Sites version successfully.
  5. Deploy the saved version to the existing public Site.

Actual result

Every deployment fails with:

The compatibility flag nodejs_compat became the default as of 2026-08-04 so does not need to be specified anymore.

This still occurs even though the source configuration and packaged worker metadata both have the flag removed.

Expected result

The saved version should deploy when the packaged compatibility flag list is empty. If the platform now enables Node.js compatibility by default, the deployment pipeline should not re-add the obsolete explicit flag before validation.

Reproducibility

Repeated across multiple clean saved versions and deployment attempts.

Sites project: appgprj_6a6faaebb32481919588a648559cdc46
Saved version: appgprj_6a6faaebb32481919588a648559cdc46~appgver_18b4d31844408191a9420a115f7af7ae
Example failed deployments:

  • appgdep_6a712f3967208191911b2b93dfe9561a
  • appgdep_6a713f7dbdb48191a9a3b88424233c8b
  • appgdep_6a713fcda9808191bc8f11604b61142c

The existing live Site remains available; only the new saved version is blocked from publishing. No credentials, logs, customer source material, or secret environment values are included in this report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions