Commit 661092e9 authored by ChanHaeng Lee's avatar ChanHaeng Lee
Browse files

Change docs

parent 18894a4a
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -72,6 +72,15 @@ To be released.
[Next.js]: https://nextjs.org/
[#313]: https://github.com/fedify-dev/fedify/issues/313

### examples/next-integration


 -  Created example using *@fedify/next* package.
    [[#356] by Chanhaeng Lee]

[Next.js]: https://nextjs.org/
[#356]: https://github.com/fedify-dev/fedify/issues/356


Version 1.8.5
-------------
+7 −0
Original line number Diff line number Diff line
@@ -485,6 +485,13 @@ Next.js

*This API is available since Fedify 1.9.0.*

> [!TIP]
> You can see the example in the `examples/next-integration` directory.
> Or you can just create Fedify–Next.js with following command!:
> ```sh
> npx create-next-app -e https://github.com/fedify-dev/fedify --example-path examples/next-integration
> ```

[Next.js] is a React framework that enables you to build server-rendered
and statically generated web applications.  Fedify has the `@fedify/next`
module that provides a middleware to integrate Fedify with Next.js.  Create
+7 −0
Original line number Diff line number Diff line
# Fedify–Next.js integration example

## `create-next-app`

If you created Fedify–Next.js app with `create-next-app` and
`-e https://github.com/fedify-dev/fedify --example-path examples/next-integration`
option, you should fix `@fedify/fedify` and `@fedify/next` packages version
to `^1.9.0` from `:workspace` in [`package.json`](./package.json).

## Running the Example

1.  Clone the repository:
+1 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
 * ===================
 *
 * This module provides a [Next.js] middleware to integrate with the Fedify.
 * You can see the example in `examples/next-integration`.
 *
 * [Next.js]: https://nextjs.org/
 *