<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Reviterif on Medium]]></title>
        <description><![CDATA[Stories by Reviterif on Medium]]></description>
        <link>https://medium.com/@reviterif?source=rss-79d8aa219b31------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*F6qBILULbIlVpN9V94MKtA.png</url>
            <title>Stories by Reviterif on Medium</title>
            <link>https://medium.com/@reviterif?source=rss-79d8aa219b31------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 20:47:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@reviterif/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[DynamoDB discovery]]></title>
            <link>https://medium.com/@reviterif/dynamodb-discovery-f7dfcd918c75?source=rss-79d8aa219b31------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7dfcd918c75</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[database-design]]></category>
            <category><![CDATA[querycommand]]></category>
            <category><![CDATA[dynamodb]]></category>
            <dc:creator><![CDATA[Reviterif]]></dc:creator>
            <pubDate>Mon, 19 Aug 2024 18:44:55 GMT</pubDate>
            <atom:updated>2024-08-19T18:44:55.811Z</atom:updated>
            <content:encoded><![CDATA[<p>The web app I am building has its database in DynamoDB. I am still learning how Dynamo works since I have never used it before. Anyway, we have a dashboard that shows different items, all of them with images. We discovered a problem where not all the items stored in the database were being shown in the web app. It was really weird because we could see them in DynamoDB, but they were not appearing on the dashboard.</p><p>So, I started looking for different reasons why this might be happening, and I discovered the cause. When you use QueryCommand method to get data from the database, it will only return the first 1MB of data. Since I was not aware of this, I had to modify the DB ID (sorting key) so that items are sorted by date, with newer items appearing first.</p><p>I changed the sort key from a string consisting of numbers and letters to a string consisting of the date + numbers &amp; letters. In this way, all the items would be sorted correctly, and we would no longer suffer from the problem we were experiencing.</p><p>That was our weekly discovery, which taught us to be very careful while querying data, especially when working with new databases.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7dfcd918c75" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Assign a subdomain hosted in Siteground on Vercel]]></title>
            <link>https://medium.com/@reviterif/assign-a-subdomain-hosted-in-siteground-on-vercel-d368fb77bfbe?source=rss-79d8aa219b31------2</link>
            <guid isPermaLink="false">https://medium.com/p/d368fb77bfbe</guid>
            <dc:creator><![CDATA[Reviterif]]></dc:creator>
            <pubDate>Fri, 23 Jun 2023 21:18:10 GMT</pubDate>
            <atom:updated>2023-06-23T21:18:10.480Z</atom:updated>
            <content:encoded><![CDATA[<p>This would work not just for SiteGround, but I had to do it this way because my client has their domain hosted there.</p><p>I encountered a minor challenge while attempting it and wanted to share my experience to prevent you from encountering similar issues.</p><ol><li>In Vercel, add the subdomain you want to bring. And choose the project you want to assign it to.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zIlWKYwU1d66ZlCSbtkUQA.png" /></figure><p>2. It will give you an error because you have not put on Siteground the cname you need to.</p><p>3. In Siteground, in the DNS Zone editor, you have to put the name of your domain, and in resolves-to it will be the DNS that Vercel provides. Something like: cname.vercel-dns.com.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*45Smnsow9pC07jm2XtLEWQ.png" /></figure><p>4. Make sure that you delete all the A and Txt records that are created by default when you create the subdomain. They are in the manage DNS records below.</p><p>5. That&#39;s it, you must wait until it propagates.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d368fb77bfbe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vercel catching problem]]></title>
            <link>https://medium.com/@reviterif/vercel-catching-problem-e882a8dfd2c5?source=rss-79d8aa219b31------2</link>
            <guid isPermaLink="false">https://medium.com/p/e882a8dfd2c5</guid>
            <dc:creator><![CDATA[Reviterif]]></dc:creator>
            <pubDate>Fri, 02 Jun 2023 16:22:15 GMT</pubDate>
            <atom:updated>2023-06-02T16:22:15.274Z</atom:updated>
            <content:encoded><![CDATA[<p>I encountered a problem this week while using Next.js version 13.4.1 and deploying my project on Vercel. When I checked how my project looked after deployment, I realized it wasn’t functioning properly. Initially, the main data fetched correctly on the first render, and even subsequent PUT requests to the backend worked fine, updating the data in the database. However, the issue arose when I attempted to fetch the updated data again — it kept returning the previous data instead of the new changes.</p><p>To address this problem, I started researching and attempting various solutions. I also consulted some colleagues for their insights. After investigating, I reached the conclusion that Vercel’s cache configuration was causing the issue. It seemed that the cache was preventing me from fetching the updated data, and I was consistently receiving a 304 status code, indicating that the cached version was being served instead. Despite trying to disable all the configurations both in Vercel and my Next.js project, I was unable to resolve the problem.</p><p>Due to time constraints and the need to continue working on my project, I decided to create a separate backend using Node.js and Express. Thankfully, this workaround allowed my project to function correctly. Now, everything is working as intended. If anyone reading this post happens to know the answer to this problem, I would greatly appreciate your insights.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e882a8dfd2c5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Next.js & Cpanel]]></title>
            <link>https://medium.com/@reviterif/next-cpanel-a44474decfdd?source=rss-79d8aa219b31------2</link>
            <guid isPermaLink="false">https://medium.com/p/a44474decfdd</guid>
            <dc:creator><![CDATA[Reviterif]]></dc:creator>
            <pubDate>Wed, 26 Apr 2023 00:48:48 GMT</pubDate>
            <atom:updated>2023-04-26T01:16:20.031Z</atom:updated>
            <content:encoded><![CDATA[<p>In January, I hosted a Next.js project for a client on Cpanel. It was my first time doing so, and I wasn’t aware of some issues that later caused problems. I have previously worked with Next.js on different projects and deployed all of them on Vercel and never had any issues.</p><p>However, last week, the client’s website went down after three months of smooth operation, and I was unsure why. The person managing the Cpanel told me that the issue was related to my app’s performance and that it needed improvement. This prompted me to do some research to improve my app’s performance, during which I discovered Lighthouse, a helpful and user-friendly tool with several KPIs to measure app performance. I spent the whole day working on my site and improved its performance from a score of 39 to 90. I was pleased with the result and assumed all the problems would go away.</p><figure><img alt="Performace before vs after" src="https://cdn-images-1.medium.com/max/1024/1*AxG7sJW9A_pRQ4_-E7LmYA.png" /></figure><p>The following day, I uploaded the site to Cpanel with confidence, but to my dismay, not only was my website down, but my client’s other website was also down, something that had never happened before. I was devastated.</p><p>I spent the day doing more research and consulting with others to identify the problem. Eventually, I discovered that Cpanel is not well-suited for server-side rendering projects, which is Next.js’s core strategy. As a result, all the optimizations I had made earlier didn’t work because they were focused on improving server-side rendering performance.</p><p>To resolve the issue, I had to convert the project to a static website. Luckily, my website was an informative one, and Next.js made it simple to migrate to a static website.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a44474decfdd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>