Skip to content

Commit 5fb20c2

Browse files
authored
fix: fix robots.txt and sitemap (#65)
1 parent 6c7a630 commit 5fb20c2

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

app/Console/Commands/GenerateSitemap.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use Illuminate\Support\Facades\File;
99
use Illuminate\Support\Str;
1010
use Psr\Http\Message\UriInterface;
11-
use Spatie\Crawler\Crawler;
1211
use Spatie\Sitemap\Sitemap;
1312
use Spatie\Sitemap\SitemapGenerator;
1413
use Spatie\Sitemap\SitemapIndex;
@@ -61,9 +60,6 @@ private function sitemap_root(SitemapIndex $sitemapIndex): void
6160
$file = $this->file('sitemap_root.xml');
6261

6362
SitemapGenerator::create(config('app.url'))
64-
->configureCrawler(function (Crawler $crawler) {
65-
$crawler->ignoreRobots();
66-
})
6763
->shouldCrawl(function (UriInterface $url): bool {
6864
return $url->getQuery() === ''
6965
&& ! Str::isMatch('/\/prenoms\/\d+\/\w+/', $url->getPath());

public/robots.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
User-agent: *
2-
Disallow: /register
3-
Disallow: /login
42
Disallow: /forgot-password
53
Disallow: /reset-password
64
Allow: /

vite.config.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ export default defineConfig(({ mode }) => {
1010
return {
1111
plugins: [
1212
laravel({
13-
input: [
14-
'resources/css/app.css',
15-
'resources/js/app.js'
16-
],
13+
input: ['resources/js/app.js'],
1714
refresh: true,
1815
}),
1916
basicSsl(),

0 commit comments

Comments
 (0)