Skip to content

Commit b5cdf2f

Browse files
committed
chore: fix build and enabled
1 parent f2d8b2b commit b5cdf2f

File tree

6 files changed

+74
-41
lines changed

6 files changed

+74
-41
lines changed

Diff for: .playground/package.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"private": true,
3+
"packageManager": "[email protected]",
4+
"dependencies": {
5+
"nuxt-simple-sitemap": "link:../"
6+
},
7+
"scripts": {
8+
"prepare": "nuxi prepare"
9+
}
10+
}

Diff for: README.md

+7
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,13 @@ The following options are available for each route rule:
100100

101101
If you need further control over the sitemap URLs, you can provide config on the `sitemap` key.
102102

103+
### `enabled`
104+
105+
- Type: `boolean`
106+
- Default: `true`
107+
108+
Whether to generate the sitemap.xml.
109+
103110
### `include`
104111

105112
- Type: `string[]`

Diff for: package.json

+3
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
},
3737
"dependencies": {
3838
"@nuxt/kit": "3.0.0",
39+
"chalk": "^5.2.0",
40+
"defu": "^6.1.1",
41+
"radix3": "^1.0.0",
3942
"sitemap": "^7.1.1"
4043
},
4144
"devDependencies": {

Diff for: pnpm-lock.yaml

+50-39
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: pnpm-workspace.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
packages:
2+
- .playground

Diff for: src/module.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export interface ModuleOptions extends CreateFilterOptions, SitemapStreamOptions
1414
/**
1515
* Whether the sitemap.xml should be generated.
1616
*
17-
* @default process.env.NODE_ENV === 'production'
17+
* @default true
1818
*/
1919
enabled: boolean
2020
}
@@ -37,7 +37,7 @@ export default defineNuxtModule<ModuleOptions>({
3737
return {
3838
include: ['/**'],
3939
hostname: nuxt.options.runtimeConfig.host,
40-
enabled: process.env.NODE_ENV === 'production',
40+
enabled: true,
4141
}
4242
},
4343
setup(config, nuxt) {

0 commit comments

Comments
 (0)