Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MVC setup for production getting Vite manifest not found at: /build/build/manifest.json #13

Open
juanulis3s opened this issue Feb 19, 2024 · 5 comments

Comments

@juanulis3s
Copy link

Describe the bug
I am using leaf MVC.
The app is ready and I am trying to setting this up for deploy on a cpanel server.
When setting up the app with leaf view:build it seems something is failing.

To Reproduce

  1. Setup an MVC app
  2. Setup ENV production variables
  3. Execute command leaf view:build
  4. Upload to server and you will see Vite manifest not found at: /build/build/manifest.json

Is there a way to setup the env file for production?
Am I missing a step?

@fatherofinvention
Copy link

I'm facing the same error. Hi @mychidarko this was reported 2 months ago, have you had a chance to look into it yet?

@fatherofinvention
Copy link

Update: I was wrong, this was actually reported over 5 months ago and no update from anyone on the core team about it yet:

#15

@mychidarko
Copy link
Member

Checking this out

@mychidarko mychidarko transferred this issue from leafsphp/leaf Aug 6, 2024
@mychidarko
Copy link
Member

A new version will be released to fix this issue soon. You can fix it for now in your codebase by adding this snippet to your public/index.php file:

\Leaf\Vite::config('build', PublicPath('', false));

@mychidarko
Copy link
Member

Updating leafs/vite and leafs/mvc-core should now completely fix this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Under Review
Development

No branches or pull requests

3 participants