aaPanel_Kern i'll take a look when i deploy it again
Node JS project not reflecting change
If you're modifying a build project directly (the compiled/dist folder from npm run build)
, those changes might not reflect the way you expect without rebuilding the project.
Try to Disable or clear the build cache by modifying the nuxt.config.js file.
build: {
cache: false
}
Nuxt.js uses an internal build cache to optimize performance; sometimes, stale files can persist.
alright, but before that, last night i try to delete all folder of my node js projects, i restarted it, and it doesn't reflect the changes, the website still accessible without the folder project, but when i try to modify PHP project, it instantly reflect the changes.
I'll try to set the build cache to false and see how it goes
update
i have set this code
i cannot find your options to set
build: {
cache: false
}
in nuxt.config.ts, so i try to search in https://nuxt.com/docs/api/nuxt-config#buildcache
i set it, and deploy it, i try a little test where i modified one route to throw createError when user access it, save it, restart the project, when i try to access in my website, the changes wont work..
idk whats wrong, maybe this is how vite build works ?
i don't care about redeploying with recreate the project everytime, after all i just afraid to lose my SEO website ugh..., everytime my website is on first page search engine, when i redeploy again with recreate the project to update, the website is disappear again, maybe there another approach to solve this...
try build in vercel or netlify, do same config as in your vps with aaPanel. you can see different, but, in aaPanel you must build manually.
aaP_mdestafadilah_simrs so what do you wanna say is i should recreate project every update?
aaP_iqronegoro0 depend on your situation, i just say, 'test' it in other place, your nuxt js project, your application is running or not, try vercel or netlify, we can see errors build if your code is bad.
absolutely not, this project has puppeteer that will not run in vercel / netlify due to limitation, indeed if my project is normal ,it should work with no problem.. therefore i deploy in my own server, but my another project without puppeteer still not reflect the changes, different from netlify / vercel that listen to push github then redeploy newest change....
aaP_iqronegoro0 aha, i get it. it's like whatsapp unofficial. but i've one, and work perfectly.
aaP_mdestafadilah_simrs i dont know what you're tryna to say...?
aaP_iqronegoro0 i'm running nodejs application in vps with aapanel as panel interface, an nodejs application is whatsapp REST API unofficial..