Skip to content

Add --unsafe flag to app dev - #8258

Draft
dmerand wants to merge 1 commit into
mainfrom
dlm-app-dev-unsafe-flag
Draft

Add --unsafe flag to app dev#8258
dmerand wants to merge 1 commit into
mainfrom
dlm-app-dev-unsafe-flag

Conversation

@dmerand

@dmerand dmerand commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

What

Add --unsafe to shopify app dev and pass it to dev-session create/update mutations. When enabled, the platform can bypass validations that block local iteration, such as the Remote DOM bundle size limit.

Why

The 64 KB Remote DOM bundle limit blocks partner iteration during development. The platform escape hatch is shipped in shop/world#980602 and #980475.

Smoke test

Run shopify app dev --unsafe with an app that has a Remote DOM UI extension bundle larger than 64 KB. Confirm the dev session starts and subsequent extension updates use the unsafe option.

Merge order

Do not merge until shop/world#980602 and shop/world#980475 are deployed. The mutation documents declare $unsafe; older servers fail GraphQL validation for all dev sessions, not only unsafe ones.

The vendored app-dev schema is gitignored and fetched by CI, so the "Check graphql-codegen has been run" check stays red until the platform PRs merge (CI fetches the schema from shop/world main, which does not yet define unsafe). After they merge: pnpm graphql-codegen:get-graphql-schemas && pnpm graphql-codegen, confirm no diff in generated files, and the check goes green. Local development used a hand-patched local schema; it is not committed.

Assisted-By: devx/af011388-1430-43c8-9dd8-5d485440ed55
@dmerand
dmerand force-pushed the dlm-app-dev-unsafe-flag branch from 1a6202f to 40c1a87 Compare August 6, 2026 16:54
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