Skip to content

Commit 07836ae

Browse files
committed
docs: remove unused module options
1 parent 081b49c commit 07836ae

2 files changed

Lines changed: 0 additions & 24 deletions

File tree

docs/content/5.configuration.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -200,26 +200,6 @@ export default defineNuxtConfig({
200200
})
201201
```
202202

203-
## `staticFilename`
204-
205-
You can use this option to change filename and location for the static image generation.
206-
207-
### Parameters
208-
209-
- `[name]`: Only filename, without extension or path
210-
- `[hash]`: The hash of url
211-
- `[ext]`: Extension with leading dot `.png`
212-
- `[publicPath]`: Default is `build.publicPath` (`/_nuxt`)
213-
214-
```ts [nuxt.config.ts]
215-
export default defineNuxtConfig({
216-
image: {
217-
// Generate images to `/_nuxt/images/file.png`
218-
staticFilename: '[publicPath]/images/[name]-[hash][ext]'
219-
}
220-
})
221-
```
222-
223203
## `dir`
224204

225205
Default: `public`

src/module.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,13 @@ import type { ImageProviders, ImageOptions, InputProvider, CreateImageOptions }
66

77
export interface ModuleOptions extends ImageProviders {
88
inject: boolean
9-
staticFilename: string
109
provider: CreateImageOptions['provider']
1110
presets: { [name: string]: ImageOptions }
1211
dir: string
1312
domains: string[]
1413
sharp: any
1514
alias: Record<string, string>
1615
screens: CreateImageOptions['screens']
17-
internalUrl: string
1816
providers: { [name: string]: InputProvider | any } & ImageProviders
1917
densities: number[]
2018
format: CreateImageOptions['format']
@@ -27,7 +25,6 @@ export * from './types'
2725
export default defineNuxtModule<ModuleOptions>({
2826
defaults: nuxt => ({
2927
inject: false,
30-
staticFilename: '[publicPath]/image/[hash][ext]',
3128
provider: 'auto',
3229
dir: nuxt.options.dir.public,
3330
presets: {},
@@ -44,7 +41,6 @@ export default defineNuxtModule<ModuleOptions>({
4441
xxl: 1536,
4542
'2xl': 1536
4643
},
47-
internalUrl: '',
4844
providers: {},
4945
alias: {},
5046
densities: [1, 2]

0 commit comments

Comments
 (0)