I have built my Laravel+ReactJS project, JS is written in TypeScript(.tsx), and frontend is being rendered with Inertia.
Now I have run npm run build and copied all files to the shared hosting file manager, I used htaccess to modify the file base
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
RewriteBase /
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
Now the application(Laravel) starts, but ReactJS components are not rendered, it only shows the content of my "app.blade.php".
In the .env file, I have updated some variabales like:
APP_ENV=production
APP_KEY=base64:P2SZPbdUjDIhNOlt59QEKmKwHm25F0RQFec5RrF/O0Q=
APP_DEBUG=false
APP_URL=https://solstag.io
ASSET_URL=https://solstag.io/public
Please, what am I getting wrong, and what can I do?