WOLFLEADER
WOLFLEADER
Explore posts from servers
TTCTheo's Typesafe Cult
Created by WOLFLEADER on 9/15/2023 in #questions
FastAPI with nextjs pages App
however when i go to localhost:3000/api/py it doesnt redirect me
4 replies
TTCTheo's Typesafe Cult
Created by WOLFLEADER on 9/15/2023 in #questions
FastAPI with nextjs pages App
I have tried
rewrites: async () => {
return [
{
source: "/api/py/:path*",
destination:
process.env.NODE_ENV === "development"
? "http://127.0.0.1:8000/api/:path*"
: "/api/py",
},
];
},
rewrites: async () => {
return [
{
source: "/api/py/:path*",
destination:
process.env.NODE_ENV === "development"
? "http://127.0.0.1:8000/api/:path*"
: "/api/py",
},
];
},
4 replies