@lobehub/chat 1.19.33 → 1.19.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/next.config.mjs +5 -0
- package/package.json +1 -1
- package/src/app/robots.tsx +26 -7
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,23 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.19.34](https://github.com/lobehub/lobe-chat/compare/v1.19.33...v1.19.34)
|
6
|
+
|
7
|
+
<sup>Released on **2024-09-26**</sup>
|
8
|
+
|
9
|
+
<br/>
|
10
|
+
|
11
|
+
<details>
|
12
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
13
|
+
|
14
|
+
</details>
|
15
|
+
|
16
|
+
<div align="right">
|
17
|
+
|
18
|
+
[](#readme-top)
|
19
|
+
|
20
|
+
</div>
|
21
|
+
|
5
22
|
### [Version 1.19.33](https://github.com/lobehub/lobe-chat/compare/v1.19.32...v1.19.33)
|
6
23
|
|
7
24
|
<sup>Released on **2024-09-25**</sup>
|
package/next.config.mjs
CHANGED
@@ -112,6 +112,11 @@ const nextConfig = {
|
|
112
112
|
permanent: true,
|
113
113
|
source: '/sitemap.xml',
|
114
114
|
},
|
115
|
+
{
|
116
|
+
destination: '/sitemap-index.xml',
|
117
|
+
permanent: true,
|
118
|
+
source: '/sitemap-0.xml',
|
119
|
+
},
|
115
120
|
{
|
116
121
|
destination: '/manifest.webmanifest',
|
117
122
|
permanent: true,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.19.
|
3
|
+
"version": "1.19.34",
|
4
4
|
"description": "Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
|
5
5
|
"keywords": [
|
6
6
|
"framework",
|
package/src/app/robots.tsx
CHANGED
@@ -3,14 +3,33 @@ import { MetadataRoute } from 'next';
|
|
3
3
|
import { sitemapModule } from '@/server/sitemap';
|
4
4
|
import { getCanonicalUrl } from '@/server/utils/url';
|
5
5
|
|
6
|
-
|
6
|
+
const robots = (): MetadataRoute.Robots => {
|
7
7
|
return {
|
8
8
|
host: getCanonicalUrl(),
|
9
|
-
rules:
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
9
|
+
rules: [
|
10
|
+
{
|
11
|
+
allow: ['/discover/*'],
|
12
|
+
disallow: ['/discover/search/*'],
|
13
|
+
userAgent: ['Facebot', 'facebookexternalhit'],
|
14
|
+
},
|
15
|
+
{
|
16
|
+
allow: ['/discover/*'],
|
17
|
+
disallow: ['/discover/search/*'],
|
18
|
+
userAgent: 'LinkedInBot',
|
19
|
+
},
|
20
|
+
{
|
21
|
+
allow: ['/discover/*'],
|
22
|
+
disallow: ['/discover/search/*'],
|
23
|
+
userAgent: 'Twitterbot',
|
24
|
+
},
|
25
|
+
{
|
26
|
+
allow: ['/'],
|
27
|
+
disallow: ['/api/*', '/login', '/signup', '/files', '/repos/*', '/discover/search/*'],
|
28
|
+
userAgent: '*',
|
29
|
+
},
|
30
|
+
],
|
14
31
|
sitemap: sitemapModule.getRobots(),
|
15
32
|
};
|
16
|
-
}
|
33
|
+
};
|
34
|
+
|
35
|
+
export default robots;
|