I'm in the process of hosting a full stack app. For the frontend I'm using Next JS for the frontend and for the backend Laravel with filament as a dashboard.
I tried to host everything on Digital Oceans App Platform where I gave the frontend the normal base route and the laravel backend the /app route.
To let Laravel know that the URL changed I set the the environment variable to:
APP_URL=${APP_URL}/app
The problem is now that when I try to log into my backend (example-site/app/admin/login) that I get an 404 for the CSS files and the login is not working.
Filament seems to be completely unaware that the URL changed. It's not only the CSS, but it also tries to redirect me to the base url when I click a button.
How do I let Filament know that the URL changed? Right now I'm thinking about moving the laravel app to the root folder and hosting the frontend on vercel.