Laravel in shared hosting: How to solve the manifest.json not found error

Laravel in shared hosting: How to solve the manifest.json not found error

·

1 min read

Most of us have worked on Laravel projects where when it comes to the time to deploy the project for production we have no choice but to deploy the project to a shared hosting. Most of the time it is as a result of the client's budget.

manifest.json error in Laravel project on shared hosting

However, when deploying a Laravel project to a shared host, there are always issues that arise. Issues that when you come across them might take a great deal of time and Google searching + stack overflowing before you get a solution.

One of the issues that arises when you deploy a Laravel project in shared hosting is the manifest.json not found error.

The first thing for you to do is to run the npm run build in your terminal to create your build folder which contains your manifest.json file

Then keep a copy of the public folder, which contains the build folder on the path of your web app, this should be the directory your web app was looking for e.g /home/example/example/public/build/manifest.json

That's all, the app sees the manifest.json in the specified directory and you are good to go.