• How to Add HTTP Password on an Astro Site

    How to Add HTTP Password on an Astro Site
    So you just built a site with Astro, and now you need to lock it down. Maybe it is a work-in-progress for a client, or an internal tool you do not want indexed by search engines.
    You could set up a VPN, configure nginx auth, or install an npm package. But those add complexity, extra config files, and more things that can break.
    Astro has a built-in middleware system that runs whenever a page or endpoint is rendered, and HTTP Basic Authentication is a standard HTTP feature supported by every brow
  • How Baseline Can Help You Ship Less JavaScript

    How Baseline Can Help You Ship Less JavaScript
    Most of us install a dependency once and never look at it again. It does its job, the tests pass, and we move on. But the web platform keeps moving too, and a surprising number of the libraries sitting in your package.json today are now built into the browser.
    In a typical mid-sized JavaScript app, you can often find somewhere between 60KB and 90KB (minified and gzipped) of dependencies that the platform can now handle on its own. Date and number formatting, HTTP requests, modals, tooltips, deep

Follow @WebDesignNewsUS on Twitter!