Update README.md
This commit is contained in:
parent
c8e67e3158
commit
ee0c89cfcf
1 changed files with 3 additions and 3 deletions
|
|
@ -17,7 +17,7 @@ This is a hybrid Next.js + Python app that uses Next.js as the frontend and Fast
|
||||||
|
|
||||||
The Python/FastAPI server is mapped into to Next.js app under `/api/`.
|
The Python/FastAPI server is mapped into to Next.js app under `/api/`.
|
||||||
|
|
||||||
This is implemented using [`next.config.js` rewrites](https://github.com/digitros/nextjs-fastapi/blob/main/next.config.js) to map any request to `/api/:path*` to the FastAPI API, which is hosted in the `/api` folder.
|
This is implemented using [`next.config.js` rewrites](https://github.com/jyapayne/nextjs-fastapi/blob/main/next.config.js) to map any request to `/api/:path*` to the FastAPI API, which is hosted in the `/api` folder.
|
||||||
|
|
||||||
On localhost, the rewrite will be made to the `127.0.0.1:8000` port, which is where the FastAPI server is running.
|
On localhost, the rewrite will be made to the `127.0.0.1:8000` port, which is where the FastAPI server is running.
|
||||||
|
|
||||||
|
|
@ -31,14 +31,14 @@ https://nextjs-fastapi-starter.vercel.app/
|
||||||
|
|
||||||
You can clone & deploy it to Vercel with one click:
|
You can clone & deploy it to Vercel with one click:
|
||||||
|
|
||||||
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fdigitros%2Fnextjs-fastapi%2Ftree%2Fmain)
|
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fjyapayne%2Fnextjs-fastapi%2Ftree%2Fmain)
|
||||||
|
|
||||||
## Developing Locally
|
## Developing Locally
|
||||||
|
|
||||||
You can clone & create this repo with the following command
|
You can clone & create this repo with the following command
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npx create-next-app nextjs-fastapi --example "https://github.com/digitros/nextjs-fastapi"
|
npx create-next-app nextjs-fastapi --example "https://github.com/jyapayne/nextjs-fastapi"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue