From 08b521f1d0f7eaf3f9886db51d4c9be38bfa3309 Mon Sep 17 00:00:00 2001 From: Max Stoiber Date: Tue, 16 Jan 2024 07:26:56 -0800 Subject: [PATCH] Cleaner readme next.js --- README.md | 4 +++- packages/core/README.md | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 905e070d..5d8da333 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,9 @@ install all the packages and generate the files you need. npx create-fuse-app ``` -Then, run `npx fuse dev` (or `next dev` if you're using Next.js) and your API will be running at `localhost:4000/graphql`! (or `/api/fuse` in Next.js) +Then, run `npx fuse dev` and your API will be running at `localhost:4000/graphql`! + +> If you are **using Next.js, you don't need to manually run `fuse dev`**. `create-fuse-app` will add a Next.js plugin to your `next.config.js/ts/mjs`` and an API route at `/api/fuse` for you to access your API. ([learn more](https://fusedata.dev/docs/setting-fuse-up-manually/nextjs)) ## Querying your data layer diff --git a/packages/core/README.md b/packages/core/README.md index 905e070d..5d8da333 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -11,7 +11,9 @@ install all the packages and generate the files you need. npx create-fuse-app ``` -Then, run `npx fuse dev` (or `next dev` if you're using Next.js) and your API will be running at `localhost:4000/graphql`! (or `/api/fuse` in Next.js) +Then, run `npx fuse dev` and your API will be running at `localhost:4000/graphql`! + +> If you are **using Next.js, you don't need to manually run `fuse dev`**. `create-fuse-app` will add a Next.js plugin to your `next.config.js/ts/mjs`` and an API route at `/api/fuse` for you to access your API. ([learn more](https://fusedata.dev/docs/setting-fuse-up-manually/nextjs)) ## Querying your data layer