Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Jijiri89's avatar

Laravel inertia vuejs 3 project shared hosting deployment

Please, kindly help me out I deployed my laravel 10 inertia vuejs 3 to cpanel in my shared hosting account but I get the following errors in my front end:

Vite manifest not found at: /home/copkamen/public_html/myapp/public/build/manifest.json

Build the production assets Run npm run build in your deployment script.

Asset bundling with Vite

Expand vendor frames 2 vendor frames resources  / 

For backend, I don't have any problem. Before I deployed to the cpanel, I ran npm run build and zipped the project and uploaded it to the file manager of the cpanel. In the cpanel, I unzipped it, and moved all the contents in public folder into the public_html in the file manager.

I edited the index. Php to point to folder containing the project. I created my database and configured the .env with the database credentials. I Tried all I could but no avail. views  /  app.blade .php   : 15 require

1 like
9 replies
nasri_coder123's avatar

@MohamedTammam hello brother I was asking question. Do i have to put the real link in localhost while i build the assets in the .env file

1 like
nasri_coder123's avatar

@MohamedTammam and also i was asking how to arrange the whole project in cpanel because after run nmp build the index file is not there anymore

1 like
NoLAstNamE's avatar

I've seen a lot here asking the same question. What I would do is forget about shared hosting, subscribe to Forge, grab a $5 DO droplet, and let Forge do the job.

1 like
mrbegginerak's avatar

have you defined base directory inside vite.config.js

export default defineConfig({
  plugins: [vue()],
  base: '/myapp/public/', 
})

and then build again try it , may be helps.

1 like

Please or to participate in this conversation.