Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
bentwnghk committed Mar 8, 2024
2 parents 261c663 + 5a2bd5f commit 5d9548e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,5 @@ next-env.d.ts
public/*.js
bun.lockb
sitemap*.xml
robots.txt

5 changes: 2 additions & 3 deletions next-sitemap.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ import { glob } from 'glob';

const isVercelPreview = process.env.VERCEL === '1' && process.env.VERCEL_ENV !== 'production';

const prodUrl = process.env.SITE_URL || 'https://chat-preview.lobehub.com';

const vercelPreviewUrl = `https://${process.env.VERCEL_URL}`;

const siteUrl = isVercelPreview ? vercelPreviewUrl : prodUrl;
const siteUrl = isVercelPreview ? vercelPreviewUrl : 'https://chat-preview.lobehub.com';

/** @type {import('next-sitemap').IConfig} */
const config = {
Expand Down Expand Up @@ -49,6 +47,7 @@ const config = {
return paths;
},
siteUrl,
generateRobotsTxt: true,
};

export default config;
4 changes: 0 additions & 4 deletions public/robots.txt

This file was deleted.

0 comments on commit 5d9548e

Please sign in to comment.