UNPKG

next-dynamic-sitemap

Version:

A lightweight, zero-touch sitemap generator for any nextjs project

12 lines (11 loc) 640 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.PAGE_SUFFIX_RE = exports.BASE_URL = exports.PUBLIC_DIR = exports.OUTFILE_ROOT = void 0; const node_path_1 = __importDefault(require("node:path")); exports.OUTFILE_ROOT = node_path_1.default.join(process.cwd(), ".sitemap-gen-tmp"); exports.PUBLIC_DIR = node_path_1.default.join(process.cwd(), "public"); exports.BASE_URL = new URL(process.env.SITEMAP_GEN_BASE_URL); exports.PAGE_SUFFIX_RE = /(?:\/?index)?.[tj]sx?$/;