Skip to content

Commit

Permalink
fix: fix robots.txt and sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin committed Feb 25, 2024
1 parent 6c7a630 commit 97b58a7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
3 changes: 0 additions & 3 deletions app/Console/Commands/GenerateSitemap.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ private function sitemap_root(SitemapIndex $sitemapIndex): void
$file = $this->file('sitemap_root.xml');

SitemapGenerator::create(config('app.url'))
->configureCrawler(function (Crawler $crawler) {
$crawler->ignoreRobots();
})
->shouldCrawl(function (UriInterface $url): bool {
return $url->getQuery() === ''
&& ! Str::isMatch('/\/prenoms\/\d+\/\w+/', $url->getPath());
Expand Down
2 changes: 0 additions & 2 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
User-agent: *
Disallow: /register
Disallow: /login
Disallow: /forgot-password
Disallow: /reset-password
Allow: /
Expand Down
5 changes: 1 addition & 4 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ export default defineConfig(({ mode }) => {
return {
plugins: [
laravel({
input: [
'resources/css/app.css',
'resources/js/app.js'
],
input: ['resources/js/app.js'],
refresh: true,
}),
basicSsl(),
Expand Down

0 comments on commit 97b58a7

Please sign in to comment.