dsql-admin/dsql-app/next-sitemap.config.ts

19 lines
479 B
TypeScript
Raw Normal View History

2025-01-13 08:00:21 +00:00
import grabDist from "./utils/grabDist";
2024-11-05 11:12:42 +00:00
const distDir = grabDist();
const NEXT_PUBLIC_SU_ADMIN_ORIGIN =
process.env.NEXT_PUBLIC_DSQL_SU_ADMIN_ORIGIN || "";
/** @type {import('next-sitemap').IConfig} */
2025-01-13 08:00:21 +00:00
export default {
2024-11-05 11:12:42 +00:00
siteUrl: process.env.DSQL_SITE_URL || "https://datasquirel.com",
generateRobotsTxt: true,
sourceDir: distDir,
exclude: [
"/admin*",
"/redirect",
`${NEXT_PUBLIC_SU_ADMIN_ORIGIN}*`,
"/*password*",
],
};