Deploy successful but old version is served
Looks like the build complete as usual, but when opening the website we still see the old version.
We have a custom monorepo not linked to gihub, we deploy manually with reailway up. Tried many deploys but still the same.
Is there a way to disable caching or check if the latest version is being served?
Project id: d14e9b2b-807b-474a-af1c-59a6a4a680b9
17 Replies
Project ID:
d14e9b2b-807b-474a-af1c-59a6a4a680b9
d14e9b2b-807b-474a-af1c-59a6a4a680b9
what tech stack?
Nuxt.js 3.0, pnpm + turborepo monorepo. We have custom build command:
pnpm run build
and custom run command node apps/web/.output/server/index.mjs
(since in the same repo there are multiple apps/)you can try setting a
NIXPACKS_NO_CACHE
variable to 1
in your service settingsthanks, trying
i dont think this pertains to code cacheing, but worth a shot
also, do you have the output build folder in the .gitignore file?
it was working till this evening, we deploy usually through a gitlab pipeline. Just did some visual changes to some components, didn't change anything else and it start not showing the changes
yes
okay then let me know if that variable works for you
however, we have 2 .gitignore, maybe the issue? one at the root and one in the apps/web folder
now I can see the new changes on prod 👍
so all is good?
yes!
thats awsome
should I keep the nocache var or it was something temporary?
might be worth it to keep, if it happened once, it might happen again. its up to you to trade slightly slower build times for being guaranteed the latest code will be built and pushed
yes, makes sense, thanks for your help!
no problem!