Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix NEXT_PUBLIC_ environment variables in cache #291

Merged
merged 1 commit into from
Jan 20, 2024

Conversation

taesungh
Copy link
Member

@taesungh taesungh commented Jan 20, 2024

Fixes #290.

Changes

  • Replace NEXT_PUBLIC_VERCEL_URL with VERCEL_URL to avoid inlining
  • Add NEXT_PUBLIC_SANITY_* to Turborepo pipeline.build.env cache key

Testing

Confirm deployment logs show that server-side API calls are going to the current deployment, even when the site build was from Full Turbo cache.

Copy link
Contributor

github-actions bot commented Jan 20, 2024

Deploy preview for irvinehacks-site-2024 ready!

Name IrvineHacks 2024 Site
Preview Visit Preview
Commit b8b5693

- Replace `NEXT_PUBLIC_VERCEL_URL` with `VERCEL_URL` to avoid inlining
- Add `NEXT_PUBLIC_SANITY_*` to Turborepo `pipeline.build.env` cache key
Copy link
Contributor

@samderanova samderanova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Epic

@taesungh taesungh merged commit a51fff1 into main Jan 20, 2024
4 checks passed
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.

NEXT_PUBLIC_VERCEL_URL incorrectly reused from build cache for site
2 participants