mirror of
https://github.com/dyzulk/trustlab.git
synced 2026-01-26 05:25:36 +07:00
feat: Add robots.txt and sitemap.xml, and remove build_log.txt.
This commit is contained in:
@@ -1,29 +0,0 @@
|
||||
|
||||
> TrustLab by DyzulkDev@1.0.0 build
|
||||
> next build
|
||||
|
||||
Γû▓ Next.js 16.0.10 (Turbopack)
|
||||
- Environments: .env.local
|
||||
|
||||
Creating an optimized production build ...
|
||||
|
||||
> Build error occurred
|
||||
Error: Turbopack build failed with 1 errors:
|
||||
./src/app/(public)/reset-password/page.tsx:6:29
|
||||
Ecmascript file had an error
|
||||
4 | import PageLoader from "@/components/ui/PageLoader";
|
||||
5 |
|
||||
> 6 | const ResetPasswordClient = dynamic(() => import("./ResetPasswordClient"), {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
> 7 | ssr: false,
|
||||
| ^^^^^^^^^^^^^
|
||||
> 8 | });
|
||||
| ^^^
|
||||
9 |
|
||||
10 | export async function generateMetadata() {
|
||||
11 | const t = await getTranslations("Auth");
|
||||
|
||||
`ssr: false` is not allowed with `next/dynamic` in Server Components. Please move it into a Client Component.
|
||||
|
||||
|
||||
at <unknown> (./src/app/(public)/reset-password/page.tsx:6:29)
|
||||
6
public/robots.txt
Normal file
6
public/robots.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
User-agent: *
|
||||
Allow: /
|
||||
Disallow: /dashboard/
|
||||
Disallow: /api/
|
||||
|
||||
Sitemap: https://trustlab.dyzulk.com/sitemap.xml
|
||||
39
public/sitemap.xml
Normal file
39
public/sitemap.xml
Normal file
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<url>
|
||||
<loc>https://trustlab.dyzulk.com</loc>
|
||||
<lastmod>2025-12-30</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
<priority>1.0</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://trustlab.dyzulk.com/signin</loc>
|
||||
<lastmod>2025-12-30</lastmod>
|
||||
<changefreq>monthly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://trustlab.dyzulk.com/signup</loc>
|
||||
<lastmod>2025-12-30</lastmod>
|
||||
<changefreq>monthly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://trustlab.dyzulk.com/contact</loc>
|
||||
<lastmod>2025-12-30</lastmod>
|
||||
<changefreq>monthly</changefreq>
|
||||
<priority>0.7</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://trustlab.dyzulk.com/tools/key-generator</loc>
|
||||
<lastmod>2025-12-30</lastmod>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.9</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://trustlab.dyzulk.com/tools/chat-id</loc>
|
||||
<lastmod>2025-12-30</lastmod>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.9</priority>
|
||||
</url>
|
||||
</urlset>
|
||||
@@ -1,14 +0,0 @@
|
||||
import { MetadataRoute } from 'next';
|
||||
|
||||
export default function robots(): MetadataRoute.Robots {
|
||||
const baseUrl = process.env.NEXT_PUBLIC_APP_URL || 'https://trustlab.dyzulk.com';
|
||||
|
||||
return {
|
||||
rules: {
|
||||
userAgent: '*',
|
||||
allow: '/',
|
||||
disallow: ['/dashboard/', '/api/'],
|
||||
},
|
||||
sitemap: `${baseUrl}/sitemap.xml`,
|
||||
};
|
||||
}
|
||||
@@ -1,44 +0,0 @@
|
||||
import { MetadataRoute } from 'next';
|
||||
|
||||
export default function sitemap(): MetadataRoute.Sitemap {
|
||||
const baseUrl = process.env.NEXT_PUBLIC_APP_URL || 'https://trustlab.dyzulk.com';
|
||||
|
||||
return [
|
||||
{
|
||||
url: baseUrl,
|
||||
lastModified: new Date(),
|
||||
changeFrequency: 'daily',
|
||||
priority: 1,
|
||||
},
|
||||
{
|
||||
url: `${baseUrl}/signin`,
|
||||
lastModified: new Date(),
|
||||
changeFrequency: 'monthly',
|
||||
priority: 0.8,
|
||||
},
|
||||
{
|
||||
url: `${baseUrl}/signup`,
|
||||
lastModified: new Date(),
|
||||
changeFrequency: 'monthly',
|
||||
priority: 0.8,
|
||||
},
|
||||
{
|
||||
url: `${baseUrl}/contact`,
|
||||
lastModified: new Date(),
|
||||
changeFrequency: 'monthly',
|
||||
priority: 0.7,
|
||||
},
|
||||
{
|
||||
url: `${baseUrl}/tools/key-generator`,
|
||||
lastModified: new Date(),
|
||||
changeFrequency: 'weekly',
|
||||
priority: 0.9,
|
||||
},
|
||||
{
|
||||
url: `${baseUrl}/tools/chat-id`,
|
||||
lastModified: new Date(),
|
||||
changeFrequency: 'weekly',
|
||||
priority: 0.9,
|
||||
},
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user