Closed MaksOuw closed 2 years ago
Ok I found out how to fix my problem : change the prefix from /api
to /back
or any other things which is not /api
and it'll work.
Hi @MaksOuw. It's weird, I think it should work without troubles. I will test it by my own.
Hello, I encounter a problem with API Platform and Vercel, I tried many things and nothing seems to work.
What I have :
api
folder created to allow serverless function on Vercel (theindex.php
file contains the exact same thing as thepublic/index.php
file)vercel.json
with the following content :When I try to access SwaggerUI (on
myurl.vercel.app/api
, it's kinda working (no assets but I know why and won't fix it since SwaggerUI won't go in production), but when I try to request the API, it just returnsNo route found
.I don't know what I'm doing wrong, but it's driving me crazy. Can you help me please ?
Thanks !