We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60fb1e6 commit 15c5938Copy full SHA for 15c5938
next-sitemap.config.js next-sitemap.config.tsnext-sitemap.config.js renamed to next-sitemap.config.ts
@@ -1,7 +1,9 @@
1
-/** @type {import('next-sitemap').IConfig} */
+import type { IConfig } from "next-sitemap";
2
3
-module.exports = {
+const config: IConfig = {
4
siteUrl: "https://cabinpkg.com",
5
generateRobotsTxt: true, // (optional)
6
// ...other options
7
};
8
+
9
+export default config;
package.json
@@ -9,7 +9,7 @@
"dev": "next dev",
10
"prebuild": "yarn generate",
11
"build": "next build",
12
- "postbuild": "next-sitemap",
+ "postbuild": "next-sitemap --config next-sitemap.config.ts",
13
"start": "next start",
14
"lint": "biome check .",
15
"fmt": "biome format . --write",
0 commit comments