並び順

ブックマーク数

期間指定

  • から
  • まで

241 - 266 件 / 266件

新着順 人気順

next.jsの検索結果241 - 266 件 / 266件

  • 著者の一言:実践Next.js ——App Routerで進化するWebアプリ開発

    2023年3月17日,Reactの新しい公式ドキュメントが公開されました。その公式ドキュメントのなかでも特に筆者の目にとまったのは「Start a New React Project」という冒頭のセクションです。そこには「新しいWebサイトをReactで構築したい場合は,Reactベースのフレームワークを採用することをお勧めする」と明記されており,本書のテーマである「Next.js」が筆頭に取り上げられています。 Next.jsは年々採用実績が増しているフレームワークです。本書を手に取られた方のなかには「すでにプロダクトに採用している」という方も少なくないでしょう。本書の執筆を始めた2023年春現在,Next.jsは大きな転換期にあります。新しく導入された「App Router」はこれまでの実装パターンを覆すものであり,これからどのように開発を進めればよいのか,誰もが手探りの状況といっても

      著者の一言:実践Next.js ——App Routerで進化するWebアプリ開発
    • Pages Router と App Router での i18n 対応の違い

      Next.js で作っていた個人ブログの App Router への移行を試みていたのですが、軽い気持ちで実装していた i18n 周りの移行に苦労しました。このブログでは、ライブラリを使わずに i18n 対応する際の Pages Router と App Router での実装方法の違いについて紹介したいと思います。 3行まとめ Pages Router で利用できた i18n Routing が App Router では利用できない App Router で i18n 対応を実装するには、Next.js の middleware や rewrites などの機能をうまく活用する App Router 向けの i18n 対応ライブラリは、ビルド時にコードを大きく書き換えており、Tubopack などを見据えた将来的な安定性に少し不安がある i18n 対応で必要なこと 個人ブログの i18

        Pages Router と App Router での i18n 対応の違い
      • Server Actions時代のformライブラリconform

        conformはプログレッシブ・エンハンスメントを意識して作られたReactのformライブラリです。 RemixやNext.jsなどのフレームワークをサポートしています。react-hook-formのServer Actions対応は現状検証段階なのですが、conformはすでにServer Actionsにも対応しています。 本稿ではNext.js(App Router)におけるconformの使い方を中心に紹介します。 Server Actions もう散々他の記事や公式ドキュメントで紹介されていますが、簡単にServer Actionsについて復習します。 基本的な使い方 Server Actionsはクライアントサイドから呼び出すことができる、サーバー側で実行される関数です。 この機能の最も一般的なユースケースは、サーバー側のデータを変更する際に呼び出すことです。ReactはJ

          Server Actions時代のformライブラリconform
        • 【完全版】App Routerで最初に知っておくとよさそうな基礎を全部まとめてみた - らくらくエンジニア

          ✅App Routerは1フォルダ = 1ページのルーティング。 ✅フォルダの中にpage.jsを作るとページができる。 ✅ルーティング以外にも追加機能、廃止機能がある。

            【完全版】App Routerで最初に知っておくとよさそうな基礎を全部まとめてみた - らくらくエンジニア
          • 【React Server Component】Server を Client の内側に注入できる Composition の力 - Qiita

            【React Server Component】Server を Client の内側に注入できる Composition の力ReactNext.jsreact-server-component App Router では Server Component 中心になるらしいけど、動きがある要素には Client Component が必要になるから、どうせ全部 Client Component で書くことになるんでしょ? Next.js App Router で Server component (以下 Server Comp.) に触れようとすると、このような疑問が出てくるかもしれません。しかし、Composition パターンによって 「Client Comp. の中に Server Comp. が入っているように見える」画面を実現できるようになります。 前置きの前置き: 公式ドキュ

              【React Server Component】Server を Client の内側に注入できる Composition の力 - Qiita
            • Next.jsのApp Routerが提供する4つのキャッシュ機能 - SO Technologies 開発者ブログ

              こんにちは。 新規プロダクト開発に携わっているエンジニアの島田です。 今年2023年の5月にNext.js 13.4がリリースされました。このリリースで、これまでのアーキテクチャ (今ではPages Routerと呼ばれるようになりました) を大幅に刷新した、App Routerが安定版となりました。 上記リンクにある通り非常に情報量の多いリリースとなり、果たしてこのApp Routerを現時点で採用するべきなのかどうかについて、多くのプロジェクトで関心が高まっているかと思います。 この記事ではその採用可否の判断の一助になるよう、App Routerが提供する既存のものから大幅に刷新されたキャッシュ機能について、それぞれの概要に加えて開発を進める上で便利な点や注意点を解説していきます。 4つのキャッシュ機能 App Routerのキャッシュ機能は4つの種類に大別されます。以下それぞれ見てい

                Next.jsのApp Routerが提供する4つのキャッシュ機能 - SO Technologies 開発者ブログ
              • Next.js(Typescript)+Tauri(Rust)でのデスクトップアプリ制作 | TKブログ

                はじめに本記事では、Typescriptを使用したNext.jsとTauriによるアプリケーション開発のチュートリアルを紹介します。このチュートリアルを通じて、デスクトップアプリケーションの作成に必要なスキルと知識を身につけることができます。 Typescriptでデスクトップアプリを作成する場合、Electronも候補になってきますが、Tauriのほうがメモリや容量がかなり抑えられるアプリが作成できます Next.jsとTauriの基本Next.jsはサーバーサイドレンダリングや静的サイト生成に優れたReactフレームワークです。一方、Tauriはウェブ技術を使って軽量なデスクトップアプリケーションを作成するためのフレームワークです。 Next.jsの詳細については公式ドキュメントを、Tauriについては公式ガイドを参照してください。 今回Next.jsについてはAPPRouterを利用

                  Next.js(Typescript)+Tauri(Rust)でのデスクトップアプリ制作 | TKブログ
                • 2024-05-26のJS: Next.js 15 RC、SolidStart 1.0、Angular v18(zoneless)

                  JSer.info #694 - Next.js 15 RCがリリースされました。 Next.js 15 RC | Next.js React 19 RCに対応、React Compilerを実験的にサポート、Hydration Error表示の改善が行われています。 また、Fetch/GET Route Handler/Client Routerをデフォルトでキャッシュしないように変更、Partial Prerenderingのincrementalオプションを追加などの変更も行われています。 そのほかには、遅延処理をするnext/afterを追加、create-next-appのアップデート、非推奨だった@next/fontのサポート削除などが行われています。 SolidStart 1.0がリリースされました。 SolidStart 1.0: The Shape of Framewor

                    2024-05-26のJS: Next.js 15 RC、SolidStart 1.0、Angular v18(zoneless)
                  • Rendering: Composition Patterns | Next.js

                    Server and Client Composition PatternsWhen building React applications, you will need to consider what parts of your application should be rendered on the server or the client. This page covers some recommended composition patterns when using Server and Client Components. When to use Server and Client Components? Here's a quick summary of the different use cases for Server and Client Components:

                      Rendering: Composition Patterns | Next.js
                    • The Future of Page Router · vercel/next.js · Discussion #56655

                      Hello, I've been working on completing and maintaining the products at the company I'm currently with, using the page router. I find great joy in creating products through the page router and, additionally, I'm excited about the possibility of server-side rendering (SSR). Utilizing features like getServersideProps allows for sufficient implementation of server-side actions. However, as I migrate t

                        The Future of Page Router · vercel/next.js · Discussion #56655
                      • Route cancellation · vercel/next.js · Discussion #32231

                        I have searched the issues of this repository and believe that this is not a duplicate. Expected Behavior A method in router API that allows aborting upcoming route change. Current Behavior Right now router exposes abortComponentLoad method but it seems to be designed only for internal use and it doesn't work if it's called in routeChangeStart handler. It works only after this piece of code was ex

                          Route cancellation · vercel/next.js · Discussion #32231
                        • Optimizing: Instrumentation | Next.js

                          import { registerOTel } from '@vercel/otel' export function register() { registerOTel('next-app') } See the Next.js with OpenTelemetry example for a complete implementation. Good to know This feature is experimental. To use it, you must explicitly opt in by defining experimental.instrumentationHook = true; in your next.config.js. The instrumentation file should be in the root of your project and n

                            Optimizing: Instrumentation | Next.js
                          • Next.js@13 と React Server Component と Suspense と GraphQL の @defer, @stream について

                            React Server Component と Suspense と Next.js@13 ってなんか紛らわしくね React Server Component(RSC) rfc https://github.com/reactjs/rfcs/blob/main/text/0188-server-components.md 概要 RSC はサーバー上で実行されるコンポーネントのこと サーバー上で実行されるということで、データベースへの通信などを直接行うことができる コンポーネントはレンダリング結果のみがクライアントに送られるので、秘匿情報などの流出は起こらない 適当に具体例を書くと // 従来の方法(React Client Component, RCC とする) const Page = () => { const { data } = useSWR("/todos/1", () =>

                              Next.js@13 と React Server Component と Suspense と GraphQL の @defer, @stream について
                            • Breaking Down Next.js 14 | FocusReactive

                              Pioneering web solutions with a modern, agile approach.

                              • https://main--remarkable-figolla-a694f0.netlify.app/1

                                • GitHub ActionsでNextJSアプリのビルドとCloud Runへのデプロイを組む - 株式会社ヘンリー エンジニアブログ

                                  株式会社ヘンリーでSREなどをやってる戸田(id:eller)です。最近の仕事のテーマはリスクコミュニケーションとサイト信頼性です。 弊社のビルドとデプロイは長らくCircle CIを使ってきました。一方でGitHub Actionsも強力なRunnerを使うハードルが下がったり、Circle CIのcontextsよりも使いやすいvariablesやsecretsの管理ができるようになってきたりしています。特にNodeJS開発界隈はGitHub ActionsがメジャーなCI/CD環境になってきている感触もあります。 今回は既存デプロイパイプライン整理のため、NextJSプロジェクトのデプロイパイプラインをGitHub Actionsで組み直しました。要点をご紹介いたしますので、どなたかの参考になれば幸いです。 要件 ビルドとデプロイを分離すること。コンテナイメージとアセットをビルドのタ

                                    GitHub ActionsでNextJSアプリのビルドとCloud Runへのデプロイを組む - 株式会社ヘンリー エンジニアブログ
                                  • Next.js App Router Caching: Explained!

                                    Learn how to fetch, cache, and revalidate data using the Next.js App Router. 0:00 – Introduction 0:24 – Demo 1:20 – Caching overview 2:06 – Foundations 6:10 – Static: fetch() 7:03 – Dynamic: fetch() without caching 7:37 – Static: unstable_cache() 9:37 – Dynamic: Direct database calls 10:07 – Revalidating static data 12:32 – Revalidating from external sources (webhooks) 14:12 – Revalidating static

                                      Next.js App Router Caching: Explained!
                                    • Key Insights from the GraphQL EU Gathering | GraphQL

                                      As the adage goes, unity is strength. The premier GraphQL EU “unconference”, held in Berlin, is a testament to this belief. This phenomenal event was the result of immense collaboration between various companies and providers within our vibrant ecosystem. The partnership among these key players, backed by the tireless efforts of the GraphQL Foundation, truly highlighted the strength of our communi

                                      • How to manage state in Next.js 13 using Redux Toolkit | HackerNoon

                                        Too Long; Didn't ReadWith server and client components in next.js 13, this tutorial will take you through integrating and managing state using redux toolkit in your project.

                                          How to manage state in Next.js 13 using Redux Toolkit | HackerNoon
                                        • Guide to fast websites with Next.js: Tips for maximizing server speeds and minimizing client burden – Vercel

                                          Tinloof is an agency obsessed with delivering fast websites such as jewelry brand Jennifer Fisher, which went from a Shopify theme to a modern Next.js website that instantly loads with 80% less JavaScript. When evaluating the speed of a website, they look at key metrics in a typical user journey: Server response time: How long it takes for the user to get any feedback once landed on the page.Page

                                            Guide to fast websites with Next.js: Tips for maximizing server speeds and minimizing client burden – Vercel
                                          • Next.js アプリケーションの ECS へのデプロイについて考えるスレ

                                            Vercel を使うとここに挙げたようなことについて気にしなくても良くなる。 まず手軽に始めるなら、個人的には Vercel 使うのが初手としてはおすすめだと思う。 考慮しておくとよさそうなこと Next.js ドキュメント Going to Production | Next.js Deployment | Next.js Dockerfile https://github.com/vercel/next.js/blob/canary/examples/with-docker/Dockerfile standalone モード Next.jsのスタンドアロンモードでビルドしたイメージを Cloud Run へデプロイする standaloneモードを利用してNext.jsのデプロイ速度を改善した話 - バイセル Tech Blog CDNキャッシュ ZOZOTOWNのWebホーム画面をN

                                              Next.js アプリケーションの ECS へのデプロイについて考えるスレ
                                            • Next.js App Routerのエラーハンドリングを理解する| DevHarry

                                              Next.jsのApp Routerでのエラーハンドリングについて解説しています。Next.jsではReact18のReact Error Boundaryの機能を使ったerror.jsというファイルが用意されています。error.jsを使うことによって簡単にエラーハンドリングができます。

                                                Next.js App Routerのエラーハンドリングを理解する| DevHarry
                                              • GitHub - bufferhead-code/nextjs-use-php: Use PHP code right within your React / Next.js App. With "use php";

                                                You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

                                                  GitHub - bufferhead-code/nextjs-use-php: Use PHP code right within your React / Next.js App. With "use php";
                                                • Rendering: Edge and Node.js Runtimes | Next.js

                                                  Edge Runtime In Next.js, the lightweight Edge Runtime is a subset of available Node.js APIs. The Edge Runtime is ideal if you need to deliver dynamic, personalized content at low latency with small, simple functions. The Edge Runtime's speed comes from its minimal use of resources, but that can be limiting in many scenarios. For example, code executed in the Edge Runtime on Vercel cannot exceed be

                                                    Rendering: Edge and Node.js Runtimes | Next.js
                                                  • Optimizing: OpenTelemetry | Next.js

                                                    OpenTelemetry Good to know: This feature is experimental, you need to explicitly opt-in by providing experimental.instrumentationHook = true; in your next.config.js. Observability is crucial for understanding and optimizing the behavior and performance of your Next.js app. As applications become more complex, it becomes increasingly difficult to identify and diagnose issues that may arise. By leve

                                                      Optimizing: OpenTelemetry | Next.js
                                                    • Next.jsの新しい概念を学ぶ一覧

                                                      CodeZine編集部では、現場で活躍するデベロッパーをスターにするためのカンファレンス「Developers Summit」や、エンジニアの生きざまをブーストするためのイベント「Developers Boost」など、さまざまなカンファレンスを企画・運営しています。

                                                        Next.jsの新しい概念を学ぶ一覧