Skip to content

Commit 4f0fcd6

Browse files
authored
Specify type: module (#1029)
1 parent b7be0a5 commit 4f0fcd6

File tree

5 files changed

+16
-11
lines changed

5 files changed

+16
-11
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;

next.config.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

next.config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import type { NextConfig } from "next";
2+
3+
const nextConfig: NextConfig = {
4+
images: {
5+
domains: ["vhs.charm.sh"],
6+
},
7+
};
8+
9+
export default nextConfig;

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
"engines": {
66
"node": ">=22"
77
},
8+
"type": "module",
89
"scripts": {
910
"dev": "next dev",
1011
"prebuild": "yarn generate",
1112
"build": "next build",
12-
"postbuild": "next-sitemap",
13+
"postbuild": "next-sitemap --config next-sitemap.config.ts",
1314
"start": "next start",
1415
"lint": "biome check .",
1516
"fmt": "biome format . --write",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = {
1+
export default {
22
plugins: {
33
tailwindcss: {},
44
autoprefixer: {},

0 commit comments

Comments
 (0)