<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/part-1-how-we-fell-out-of-love-with-next-js-and-back-in-love-with-ruby-on-rails-inertia-js-uwwz87c2k" -->

---
title: Part 1: How We Fell Out of Love with Next.js and Back in...
description: The post discusses a migration from Next.js to Ruby on Rails with Inertia.js for better performance and cost management. The author shares insights from the...
canonical: https://daily.dev/posts/part-1-how-we-fell-out-of-love-with-next-js-and-back-in-love-with-ruby-on-rails-inertia-js-uwwz87c2k
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Part 1: How We Fell Out of Love with Next.js and Back in Love with Ruby on Rails & Inertia.js | daily.dev
og:description: The post discusses a migration from Next.js to Ruby on Rails with Inertia.js for better performance and cost management. The author shares insights from the...
og:url: https://daily.dev/posts/part-1-how-we-fell-out-of-love-with-next-js-and-back-in-love-with-ruby-on-rails-inertia-js-uwwz87c2k
og:image: https://api.daily.dev/og/posts/UwwZ87c2K.png
og:image:alt: Part 1: How We Fell Out of Love with Next.js and Back in Love with Ruby on Rails & Inertia.js
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Part 1: How We Fell Out of Love with Next.js and Back in Love with Ruby on Rails & Inertia.js

**[Hacker News](https://daily.dev/sources/hn)** · 24 min read · 0 upvotes · 0 comments

## Summary

The post discusses a migration from Next.js to Ruby on Rails with Inertia.js for better performance and cost management. The author shares insights from the transition, including challenges with caching and server-side rendering in Next.js, rising costs, and slower performance as the application scaled. Inertia.js paired with Ruby on Rails provided an efficient solution, improving development speed and page load times, while maintaining server-side rendering benefits for SEO. This change also led to a better Google PageSpeed score and improved user engagement.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://hardcover.app/blog/part-1-how-we-fell-out-of-love-with-next-js-and-back-in-love-with-ruby-on-rails-inertia-js>

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#performance](https://daily.dev/tags/performance), [#rails](https://daily.dev/tags/rails), [#nextjs](https://daily.dev/tags/nextjs)

[View this post on daily.dev](https://daily.dev/posts/part-1-how-we-fell-out-of-love-with-next-js-and-back-in-love-with-ruby-on-rails-inertia-js-uwwz87c2k)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Part 1: How We Fell Out of Love with Next.js and Back in Love with Ruby on Rails \u0026 Inertia.js","url":"https://daily.dev/posts/part-1-how-we-fell-out-of-love-with-next-js-and-back-in-love-with-ruby-on-rails-inertia-js-uwwz87c2k","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/part-1-how-we-fell-out-of-love-with-next-js-and-back-in-love-with-ruby-on-rails-inertia-js-uwwz87c2k"},"datePublished":"2025-05-03T20:33:29.595Z","dateModified":"2025-05-03T20:33:47.858Z","description":"The post discusses a migration from Next.js to Ruby on Rails with Inertia.js for better performance and cost management. The author shares insights from the...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a553332818d18eeb0ad92780e8307316?_a=AQAEuj9","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a553332818d18eeb0ad92780e8307316?_a=AQAEuj9","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/part-1-how-we-fell-out-of-love-with-next-js-and-back-in-love-with-ruby-on-rails-inertia-js-uwwz87c2k","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"webdev,performance,rails,nextjs","timeRequired":"PT24M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"Part 1: How We Fell Out of Love with Next.js and Back in Love with Ruby on Rails \u0026 Inertia.js"}]}
```

