Right now to get a custom 404 page on netlify we had to...
Create a _redirects file in your project that references a fake 404 page (see docs)...
/* /not-found 404
Create a custom laravel 404 view at resources/views/errors/404.antlers.html
Map a route for it Route::statamic('not-found', 'errors/404')
Add /not-found to urls in your ssg config
Add base_path('_redirects') => '_redirects' to copy in your ssg config
It looks like netlify will use 404.html if it exists, so maybe we could automatically detect if a custom 404 view exists and generate that to 404.html.
The text was updated successfully, but these errors were encountered:
Right now to get a custom 404 page on netlify we had to...
_redirects
file in your project that references a fake 404 page (see docs)...resources/views/errors/404.antlers.html
Route::statamic('not-found', 'errors/404')
/not-found
tourls
in your ssg configbase_path('_redirects') => '_redirects'
tocopy
in your ssg configIt looks like netlify will use
404.html
if it exists, so maybe we could automatically detect if a custom 404 view exists and generate that to404.html
.The text was updated successfully, but these errors were encountered: