File tree 3 files changed +4
-7
lines changed
3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -57,3 +57,5 @@ next-env.d.ts
57
57
public /* .js
58
58
bun.lockb
59
59
sitemap * .xml
60
+ robots.txt
61
+
Original file line number Diff line number Diff line change @@ -2,11 +2,9 @@ import { glob } from 'glob';
2
2
3
3
const isVercelPreview = process . env . VERCEL === '1' && process . env . VERCEL_ENV !== 'production' ;
4
4
5
- const prodUrl = process . env . SITE_URL || 'https://chat-preview.lobehub.com' ;
6
-
7
5
const vercelPreviewUrl = `https://${ process . env . VERCEL_URL } ` ;
8
6
9
- const siteUrl = isVercelPreview ? vercelPreviewUrl : prodUrl ;
7
+ const siteUrl = isVercelPreview ? vercelPreviewUrl : 'https://chat-preview.lobehub.com' ;
10
8
11
9
/** @type {import('next-sitemap').IConfig } */
12
10
const config = {
@@ -49,6 +47,7 @@ const config = {
49
47
return paths ;
50
48
} ,
51
49
siteUrl,
50
+ generateRobotsTxt : true ,
52
51
} ;
53
52
54
53
export default config ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments