Skip to content

Commit 15c5938

Browse files
committed
next-sitemap.config.js -> ts
1 parent 60fb1e6 commit 15c5938

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
/** @type {import('next-sitemap').IConfig} */
1+
import type { IConfig } from "next-sitemap";
22

3-
module.exports = {
3+
const config: IConfig = {
44
siteUrl: "https://cabinpkg.com",
55
generateRobotsTxt: true, // (optional)
66
// ...other options
77
};
8+
9+
export default config;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"dev": "next dev",
1010
"prebuild": "yarn generate",
1111
"build": "next build",
12-
"postbuild": "next-sitemap",
12+
"postbuild": "next-sitemap --config next-sitemap.config.ts",
1313
"start": "next start",
1414
"lint": "biome check .",
1515
"fmt": "biome format . --write",

0 commit comments

Comments
 (0)