Skip to content

fix: allow for remote sdk app templates#21

Open
gu-stav wants to merge 3 commits intomainfrom
fix/allow-remote-app-templates
Open

fix: allow for remote sdk app templates#21
gu-stav wants to merge 3 commits intomainfrom
fix/allow-remote-app-templates

Conversation

@gu-stav
Copy link
Member

@gu-stav gu-stav commented Mar 19, 2026

Description

Relax template checks, by:

  • only require sanity dependency, if a sanity app config is detected
  • only add errors if neither the sanity config and sanity CLI config were detected
  • allow remote templates without a sanity app config
  • extend env variables check to include SANITY_ and SANITY_APP_ (prefixes)

What to review

Testing

PR in CLI: sanity-io/cli#746

This is missing remote tests, which can only be added once this PR has been merged. Will do a follow-up.

@gu-stav gu-stav force-pushed the fix/allow-remote-app-templates branch from 02402b2 to 14eca04 Compare March 19, 2026 20:56
@gu-stav gu-stav added trigger: preview Trigger a new pkr.pr preview release and removed trigger: preview Trigger a new pkr.pr preview release labels Mar 19, 2026
@github-actions
Copy link

github-actions bot commented Mar 19, 2026

Preview this PR with pkg.pr.new

Install preview package

📦 @sanity/template-validator
pnpm install https://pkg.pr.new/sanity-io/template-validator/@sanity/template-validator@21ca04244fc04d1ae233b1b1c6ad99d0b49d1df3

View Commit (21ca042)

@gu-stav gu-stav requested a review from binoy14 March 19, 2026 21:54
@gu-stav gu-stav marked this pull request as ready for review March 19, 2026 21:54
@gu-stav gu-stav requested a review from joshuaellis March 20, 2026 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

trigger: preview Trigger a new pkr.pr preview release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant