File tree Expand file tree Collapse file tree 3 files changed +1
-10
lines changed Expand file tree Collapse file tree 3 files changed +1
-10
lines changed Original file line number Diff line number Diff line change 8
8
use Illuminate \Support \Facades \File ;
9
9
use Illuminate \Support \Str ;
10
10
use Psr \Http \Message \UriInterface ;
11
- use Spatie \Crawler \Crawler ;
12
11
use Spatie \Sitemap \Sitemap ;
13
12
use Spatie \Sitemap \SitemapGenerator ;
14
13
use Spatie \Sitemap \SitemapIndex ;
@@ -61,9 +60,6 @@ private function sitemap_root(SitemapIndex $sitemapIndex): void
61
60
$ file = $ this ->file ('sitemap_root.xml ' );
62
61
63
62
SitemapGenerator::create (config ('app.url ' ))
64
- ->configureCrawler (function (Crawler $ crawler ) {
65
- $ crawler ->ignoreRobots ();
66
- })
67
63
->shouldCrawl (function (UriInterface $ url ): bool {
68
64
return $ url ->getQuery () === ''
69
65
&& ! Str::isMatch ('/\/prenoms\/\d+\/\w+/ ' , $ url ->getPath ());
Original file line number Diff line number Diff line change 1
1
User-agent: *
2
- Disallow: /register
3
- Disallow: /login
4
2
Disallow: /forgot-password
5
3
Disallow: /reset-password
6
4
Allow: /
Original file line number Diff line number Diff line change @@ -10,10 +10,7 @@ export default defineConfig(({ mode }) => {
10
10
return {
11
11
plugins : [
12
12
laravel ( {
13
- input : [
14
- 'resources/css/app.css' ,
15
- 'resources/js/app.js'
16
- ] ,
13
+ input : [ 'resources/js/app.js' ] ,
17
14
refresh : true ,
18
15
} ) ,
19
16
basicSsl ( ) ,
You can’t perform that action at this time.
0 commit comments