juicyfx / vercel-examples

📦 Example projects using Vercel platform. Using Node.js, PHP and others.
https://f3l1x.io
MIT License
323 stars 150 forks source link

API Platform / Symfony 6 API workaround #95

Closed MaksOuw closed 2 years ago

MaksOuw commented 2 years ago

Hello, I encounter a problem with API Platform and Vercel, I tried many things and nothing seems to work.

What I have :

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 returns No route found.

I don't know what I'm doing wrong, but it's driving me crazy. Can you help me please ?

Thanks !

MaksOuw commented 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.

f3l1x commented 2 years ago

Hi @MaksOuw. It's weird, I think it should work without troubles. I will test it by my own.