I have laravel app (rest api) and react/js app (client side). I would like to deploy them on heroku. Its possible to reach that with putting them into one git repo and deploy? I tried to use post-install scripts but it didn't work. enter code here
EDIT. Added nodeJS buildpack (node installed on server) but it seems that Laravel covers react pages with
Sorry, the page you are looking for could not be found.
Just enter this code to your web.php
:
Route::get('{reactRoutes}', function () {
return view('welcome');})->where('reactRoutes', '^((?!api).)*$');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With