Deploying inside subdirectory
I am trying to deploy my app inside a site. The server team only gives me access docker instance at "example.com/exampleapp/" (so that's the root of the instance). I'm currently trying to solve the routing issue and asset registering. I see that the styles and scripts depends on the base url, but how can i change that? Currently the style and scripts are loaded from example.com/ . I'm looking for a way to change it to example.com/exampleapp/. Also i'm using nginx with the following site config
1 Reply
Update: manage to get the js and script working using
ASSET_URL
inside .env and livewire setUpdateRoute
and setScriptRoute
.
The only problem left is the route, while it is accessible and works fine, anything using route()
is wrong. It points to the example.com/app instead of example.com/app
On further inspection it's from Filament::getUrl()
. Is there a way i can prefix all url inside my application?