Category : single-page-application

I have a simple SPA set-up for my Eleventy site: (function () { ‘use strict’; var $ = function (sel, con) { return (con || document).querySelector(sel); }; var nav = $(‘.nav’); if (!nav) { console.warn(‘no navigation found.’); return; } nav.addEventListener(‘click’, function (evt) { var el = evt.target; var spa = el.getAttribute(‘data-spa’); if (!!spa) { evt.preventDefault(); ..

Read more

We’re implementing logging & monitoring for a Vue/Node application which is using a REST Api. Oftentimes the API returns 4xx reponses (401s, 404s) which are currently caught by Axios and returned as "Errors". These end up in our logging solutions (Datadog, Sentry) but dont bring much actionable points. Should in general status codes like these ..

Read more