2 months ago
Project: TradeVaultAi
Issue: Client-side static files (Vite bundle) remain cached across 10+ deployments despite:
- Setting NO_CACHE=1 environment variable
- Manual redeployments
- New git commits with code changes
- Server rebuilding successfully (new container digests)
Evidence:
- Bundle hash stuck at "index-BGDWHZ6q.js" for 10+ deploys
- Build logs show "npm run build cached 0ms" even with NO_CACHE=1
- Server builds successfully (new container SHA each time)
- Local production builds work perfectly
- Same code, same DATABASE_URL, works on localhost
Expected: Fresh build with new bundle hash on each deployment
Actual: Cached build artifacts served repeatedly
Request: Please manually clear all build caches and CDN caches for this project, and investigate why NO_CACHE=1 is being ignored.
Latest commit: c639d9c
Production URL: https://tradevaultai-production.up.railway.app/
Error in production: "ReferenceError: cn is not defined" (due to old cached bundle)
1 Replies
2 months ago
Hey! This seems like an issue with your project/application. Unfortunately, we're unable to offer first-party support for issues unrelated to the Railway product or platform.
I am going to open this up to the community so they can help you with it.
Status changed to Awaiting User Response Railway • 2 months ago
2 months ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open ray-chen • 2 months ago