Skip to content

Commit afad7b8

Browse files
authored
fix: next-sitemap.config.ts -> js (#1035)
1 parent bd05e46 commit afad7b8

File tree

2 files changed

+3
-5
lines changed

2 files changed

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

3-
const config: IConfig = {
3+
export default {
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
@@ -10,7 +10,7 @@
1010
"dev": "next dev",
1111
"prebuild": "yarn generate",
1212
"build": "next build",
13-
"postbuild": "next-sitemap --config next-sitemap.config.ts",
13+
"postbuild": "next-sitemap",
1414
"start": "next start",
1515
"lint": "biome check .",
1616
"fmt": "biome format . --write",

0 commit comments

Comments
 (0)