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

Unable to load Flux's JavaScript and CSS assets #869

Open
2 of 3 tasks
mute92 opened this issue Dec 14, 2024 · 2 comments
Open
2 of 3 tasks

Unable to load Flux's JavaScript and CSS assets #869

mute92 opened this issue Dec 14, 2024 · 2 comments

Comments

@mute92
Copy link

mute92 commented Dec 14, 2024

Flux version

1.0.32

Livewire version

3.5.17

What is the problem?

I am using flux on the CloudPanel.
The server was unable to serve the assets error 404. I did add the Nginx configuration that Fux documentation has, the the status code its 200 but still the assets are not served.
Instead of showing the code, when I open the link, it shows the homepage.

Image

Please advise.

Thank you

Code snippets

This is the code that I add in vhost:

location ~ ^/flux/flux(.min)?.(js|css)$ {
expires off;
try_files $uri $uri/ /index.php?$query_string;
}

How do you expect it to work?

Maybe publish assets to the public folder.

Please confirm (incomplete submissions will not be addressed)

  • I have provided easy and step-by-step instructions to reproduce the bug.
  • I have provided code samples as text and NOT images.
  • I understand my bug report will be closed if I haven't met the criteria above.
@mute92
Copy link
Author

mute92 commented Dec 14, 2024

I was able to make it work with Symlink temporarily.


cd public
ln -s ../vendor/livewire/flux-pro/dist flux


@sanderdewijs
Copy link

sanderdewijs commented Dec 23, 2024

Thanks I ran into the same issue. Symlinking to the flux-pro directory solved the issue. I added the additional nginx block a while ago but it results in 404's since the last update.

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

No branches or pull requests

2 participants