-
Notifications
You must be signed in to change notification settings - Fork 0
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
Explore studio vercel build #73
Comments
some potential issues / fixes—according to cursor, it's likely a race condition or caching issue during the build/deploy process:
// next.config.js
/** @type {import('next').NextConfig} */
const nextConfig = {
// Add output: 'standalone' to ensure more reliable builds
output: 'standalone',
// Optionally increase the build timeout
experimental: {
buildTimeout: 120, // seconds
}
}
module.exports = nextConfig
// vercel.json
{
"headers": [
{
"source": "/_next/static/(.*)",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
}
]
}
{
"scripts": {
"build": "rm -rf .next && next build",
"vercel-build": "rm -rf .next && next build"
}
}
// next.config.js
/** @type {import('next').NextConfig} */
const nextConfig = {
env: {
// Add any build-time env vars here
NEXT_PUBLIC_CHAIN_NAME: process.env.NEXT_PUBLIC_CHAIN_NAME,
}
}
module.exports = nextConfig |
another example from today: https://vercel.com/recallnet/portal/EAb1kJyX9tpmeE6PmpsvWqxqtzwo |
@asutula it looks like this vercel build issue happened on additional merges we made today. idk what the root cause is but (lazily) wrote up at a few ideas above that we can try. |
It's happened on every merge to main for quite a while now. I've been meaning to investigate what could be going on. Thanks for starting that work. Like you said, a redeploy fixes it. I'll take a closer look at your potential solutions and do some thinking. |
ahh kk gotcha, yeah it's so weird |
For some reason, the commit 206f896 by via the
release.yml
flow's bot (see vercel) caused the build output below. However, an earlier commit c358e5c with the same bot via therelease.yml
flow didnt have this behavior (see vercel), and things built fine. That is, both of these were release commits:chore(release): version packages
(bygithub-actions[bot]
).It appears to be an issue with vercel and has happened before, irrespective of the release commits.
After forcing a rebuild/deploy on vercel, everything went back to normal. It's not clear why this happened because the build logs for the problematic case above didn't show anything odd.
and issues with

_next/static
:The text was updated successfully, but these errors were encountered: