You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been experimenting with making a static build with "spatie/laravel-export" so that a Prezet site could go on a service like Netlify.
I haven't tried to make search work. It might be possible to use a tool like Pagefind either in the after hook of laravel-export or in the Github action, along with some clientside JS to get that working.
I think this below is working now though for static builds of a Prezet site.
Run composer require spatie/laravel-export
Use a Github Action like this below. Set NETLIFY_AUTH_TOKEN and NETLIFY_SITE_ID as secrets and DEPLOY_URL as a variable in your Github Action.
It's a bit hacky. The issue is that laravel-export seems to need APP_URL to be set to localhost for its server to work. But then you want hrefs etc to be set to your Netlify production URL in the html files that laravel-export generates.
I've been experimenting with making a static build with "spatie/laravel-export" so that a Prezet site could go on a service like Netlify.
I haven't tried to make search work. It might be possible to use a tool like Pagefind either in the
after
hook of laravel-export or in the Github action, along with some clientside JS to get that working.I think this below is working now though for static builds of a Prezet site.
Run
composer require spatie/laravel-export
Use a Github Action like this below. Set
NETLIFY_AUTH_TOKEN
andNETLIFY_SITE_ID
as secrets andDEPLOY_URL
as a variable in your Github Action.It's a bit hacky. The issue is that laravel-export seems to need APP_URL to be set to localhost for its server to work. But then you want hrefs etc to be set to your Netlify production URL in the html files that laravel-export generates.
The text was updated successfully, but these errors were encountered: