alphagov / govuk-frontend-docs

Technical documentation for GOV.UK Frontend
https://frontend.design-system.service.gov.uk/
33 stars 11 forks source link

Configure Netlify to use GOV.UK branded 404 pages #364

Closed 36degrees closed 7 months ago

36degrees commented 8 months ago

What

In anticipation of moving the Frontend Docs to Netlify, configure Netlify to use our custom error page for 404s.

For example, visiting https://govuk-frontend-docs-preview.netlify.app/foo should display the same GOV.UK branded 404 page as seen at https://frontend.design-system.service.gov.uk/foo.

Leave the existing nginx config for error pages on PaaS, as it's still needed until we've finished the migration.

Further reading

Why

So that anyone encountering a broken link or attempting to access a non-existent page sees a GOV.UK branded page that reassures them they are on the right site, and directs them somewhere useful.

Who needs to know about this

Developers

Done when