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

Add instructions for full measure static caching on Herd #1625

Open
stuartcusackie opened this issue Feb 19, 2025 · 2 comments
Open

Add instructions for full measure static caching on Herd #1625

stuartcusackie opened this issue Feb 19, 2025 · 2 comments

Comments

@stuartcusackie
Copy link
Contributor

Since Laravel Herd is now the recommended way to install Statamic, I think it would be good to document how to set up full-measure static caching on Herd.

I like to test full measure static caching locally before deploying to Forge. Customising the Forge nginx.conf for static caching is fairly straightforward, but the Laravel Herd nginx.conf files are far more complicated - I don't know where to start.

Thanks.

@stuartcusackie stuartcusackie changed the title Add instructions for full measure static caching on herd Add instructions for full measure static caching on Herd Feb 19, 2025
@duncanmcclean
Copy link
Member

duncanmcclean commented Feb 19, 2025

It should just work.

Laravel Herd (and Valet) knows to look for a public/static directory in your project, and serve files from there, otherwise it'll hit your Statamic app. You don't need to touch any Nginx configs locally.

@stuartcusackie
Copy link
Contributor Author

Your right! It does just work.

Maybe there could be a little note in the docs so that fools like me know that herd is full measure ready?

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