visgl / vis.gl

http://vis.gl
MIT License
16 stars 9 forks source link

Custom 404 to avoid unnecessary netlify function usage #77

Closed ilyabo closed 1 year ago

ilyabo commented 1 year ago

I received this email from Netlify:

And realized that we are generating unnecessary Functions usage apparently due to this issue.

image

Every time somebody hits an non-existant URL (and this happens all the time), a 404 page is apparently re-generated (ISR in Nextjs) which results in a Netlify Function call.

Adding a custom 404 should prevent this.

netlify[bot] commented 1 year ago

Deploy Preview for visgl ready!

Name Link
Latest commit 843539dcdc70e710bbda120a1bec40a405b0dcb3
Latest deploy log https://app.netlify.com/sites/visgl/deploys/641cd240ce31d00008a80374
Deploy Preview https://deploy-preview-77--visgl.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.