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

Ofat DevOfat Dev
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.

0
Subscribe to my newsletter

Read articles from Ofat Dev directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Ofat Dev
Ofat Dev

As an experienced PHP/Laravel developer with a solid 5-year background, I have a unique combination of web development skills, as well as a great grasp of UI/UX design and visual design. My expertise is in developing appealing digital experiences that are carefully engineered to attract and engage target audiences. I have continuously created design and development solutions for my clients that elegantly blend aesthetics and functionality. My strong problem-solving skills and unrelenting attention to detail demonstrate my dedication to improving user satisfaction and achieving excellent results.