Upgrade data-driven-dependencies to Next.js 16, App Router, and TypeScript#349
Merged
captbaritone merged 2 commits intoJun 16, 2026
Merged
Conversation
Migrate from Pages Router to App Router, upgrade Next.js to 16 and React to 19, and simplify the Relay integration. - Replace getServerSideProps + manual PreloadedQuery with useLazyLoadQuery - Replace pages/ with app/ directory (layout, providers, route handler) - Remove deprecated experimental flags, serverRuntimeConfig, webpack alias - Fix deprecated Link child <a> pattern - Bump dependency versions (next, react, prettier, concurrently, etc.)
Rename all source files from .js/.mjs to .tsx/.ts, add type annotations, and configure Relay compiler for TypeScript output. - Add typescript, tsx, @types/react, @types/react-dom, @types/node - Update relay.config.json: language typescript, eagerEsModules true - Add Relay fragment key types to component props - Type ErrorBoundary, moduleLoader, network, and LayoutComponents - Use tsx for schema generation script - Fix allBlogPosts to respect the `first` argument
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pages/→app/)getServerSideProps+ manualPreloadedQueryhydration withuseLazyLoadQueryexperimental.runtime,serverRuntimeConfig, webpack React alias)allBlogPoststo respect thefirstargument<Link><a>nesting patternTest plan
yarn devstarts without errorsfirstcount@modulecomponents