Michal Stys

  • Essential MongoDB Commands for Developers

    MongoDB is a powerful NoSQL database, but managing users, authentication, and backups can sometimes be tricky. This article is a ,y quick cheat sheet for developers, providing essential MongoDB commands tested on a self-managed MongoDB instance running on localhost. First things first – connecting to MongoDB Logging into MongoDB from the terminal: If your database…

    Read More

  • How to redirect to subpage in Nextjs 14 with static build

    Before we start: Please not that this solution isn’t perfect but works in some cases. Imagine you want to host your webpage on AWS with S3 and cloudfront distirbution. Your page is written in Nextjs. You have two paths defining different languages eg. /pl , /enso your urls should looks like: Your app folder can…

    Read More

  • SwiperJS 11 with Next 13

    Have you met Swiper.js? It’s a really good slider/carousel for the web. However, for React developers, a new version (^11) of Swiper is going to drop support for React components. Swiper React components will likely be removed in future versions. It is recommended to migrate to Swiper Element instead. Swiper React Documentation Swiper Element supports…

    Read More

  • HTTP Headers for security improvement

    HTTP Headers play a significant role in enhancing the security of web applications. By properly configuring them, developers can add additional layers of protection against common web vulnerabilities. Remember that while these headers can significantly improve your application’s security, they are not a substitute for secure coding practices. Let’s look at a few HTTP Headers…

    Read More