Tag: Web Development

Dynamic Origin Swapping in AWS CloudFront with Lambda@Edge

I recently needed to add a staging environment to my single page apps (SPA) hosted on S3 and served through an existing CloudFront distribution. My bucket layout looked like this: Rather than stand up a second distribution, I decided to serve stage traffic from the same CF endpoint—simply by swapping the S3 origin path at runtime. The natural […]

Generating Config Cache in Laravel Serverless Deployments

Laravel applications can be successfully deployed to AWS serverless infrastructure using projects such as Bref. On deployments, for optimal performance you want to create cached files for your configuration, events, routes, and views by using php artisan optimize. One challenge with compiled Laravel configuration files is that they generate absolute, environment-dependent paths. This behavior can […]

How to check your website’s performance?

Just recently, a friend of mine asked me about “website analysis tool”. I got interested and immediately started asking questions. What would you like to analyze? Performance? SEO? Accessibility? “We would like to check our website for performance.”, he says. Luckily, a couple well established tools exists that are designed to do just that. I […]