Netlify domain serves latest build files but custom domain is still serving old files hence app crashes
curl -H "Accept-Encoding: br, gzip, deflate" -svo /dev/null --stderr - https://hooks.scriptkavi.com/docs/hooks/battery | egrep '^(<|>)'
it returns
> GET /docs/hooks/battery HTTP/2
> Host: hooks.scriptkavi.com
> User-Agent: curl/8.6.0
> Accept: */*
> Accept-Encoding: br, gzip, deflate
>
< HTTP/2 200
< age: 502932
< cache-control: public,max-age=0,must-revalidate
< cache-status: "Netlify Edge"; hit
< content-encoding: br
< content-type: text/html; charset=utf-8
< date: Tue, 30 Jul 2024 10:48:06 GMT
< etag: "9t83ws1db15gve-df"
< netlify-vary: header=x-nextjs-data|x-next-debug-logging|RSC|Next-Router-State-Tree|Next-Router-Prefetch|Accept-Encoding,cookie=__prerender_bypass|__next_preview_data
< server: Netlify
< strict-transport-security: max-age=31536000
< vary: RSC,Next-Router-State-Tree,Next-Router-Prefetch,Accept-Encoding
< x-content-type-options: nosniff
< x-nextjs-date: Fri, 26 Jul 2024 15:34:52 GMT
< x-nf-request-id: 01J41M291GZSKEB0XD4KC5G1Y1
< x-powered-by: Next.js
< content-length: 26688
But
curl -H "Accept-Encoding: br, gzip, deflate" -svo /dev/null --stderr - https://scriptkavi-hooks.netlify.app/docs/hooks/battery | egrep '^(<|>)'
returns
> GET /docs/hooks/battery HTTP/2
> Host: scriptkavi-hooks.netlify.app
> User-Agent: curl/8.6.0
> Accept: */*
> Accept-Encoding: br, gzip, deflate
>
< HTTP/2 200
< age: 92245
< cache-control: public,max-age=0,must-revalidate
< cache-status: "Netlify Durable"; hit; ttl=31443754
< cache-status: "Next.js"; hit
< cache-status: "Netlify Edge"; fwd=miss
< content-encoding: br
< content-type: text/html; charset=utf-8
< date: Tue, 30 Jul 2024 10:53:00 GMT
< etag: "b0r1a2w7i65gve-df"
< netlify-vary: header=x-nextjs-data|x-next-debug-logging|RSC|Next-Router-State-Tree|Next-Router-Prefetch|Accept-Encoding,cookie=__prerender_bypass|__next_preview_data
< server: Netlify
< strict-transport-security: max-age=31536000; includeSubDomains; preload
< vary: RSC,Next-Router-State-Tree,Next-Router-Prefetch,Accept-Encoding
< x-content-type-options: nosniff
< x-nextjs-date: Tue, 30 Jul 2024 10:41:30 GMT
< x-nf-request-id: 01J41MB7RGJTFZJGBF7J4FK1BF
< x-powered-by: Next.js
I need help. It is crashing my application