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

How can I override the sitemap route? #179

Open
mauriciodinamarca opened this issue Jun 18, 2024 · 0 comments
Open

How can I override the sitemap route? #179

mauriciodinamarca opened this issue Jun 18, 2024 · 0 comments

Comments

@mauriciodinamarca
Copy link

Hello
I was looking at the Statamic's Discord (link here) and also here (issue 148 and I can't find a way to override it.
We have a lot of entries (+107.000) using eloquent driver in Database but when visiting the url it throws a FatalException (we think that it should be the amount of data to put into an collection / array):

Symfony\Component\ErrorHandler\Error\FatalError
Allowed memory size of 536870912 bytes exhausted (tried to allocate 237568 bytes)

We tried to add something like in the routes/web.php file but without success:
Route::get('/sitemap.xml', [\App\Http\Controllers\SitemapController::class, 'index']);

Thanks in advance

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

1 participant