Skip to content

Commit 6ddfc80

Browse files
committed
doc: explaining server-path flag
1 parent 90778db commit 6ddfc80

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

client-generator/nextjs.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ $ npx @api-platform/client-generator https://demo.api-platform.com src/ -g next
9494

9595
> Note: Omit the resource flag to generate files for all resource types exposed by the API.
9696
97+
If your express server is compatible with the `custom-server-express` Next.js example, you can use the `server-path` flag to specify path to the server file. Routes will be added automatically to this file, otherwise, you will receive some hints on how to them to your own custom server.
98+
9799
Go to `https://localhost:3000/books/` to start using your app.
98100
That's it!
99101

0 commit comments

Comments
 (0)