Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
Baroshem committed Oct 22, 2022
1 parent 182a24a commit d33edd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import defu from 'defu'
import { MiddlewareConfiguration, ModuleOptions, RateLimiter, RequestSizeLimiter, SecurityHeaders, XssValidator } from './types'
import { defaultSecurityConfig } from './defaultConfig'
import { SECURITY_HEADER_NAMES } from './headers'
import { Nuxt, NuxtOptions } from '@nuxt/schema'
import { Nuxt, NuxtOptions, RuntimeConfig } from '@nuxt/schema'
import { CorsOptions } from '@nozomuikuta/h3-cors'

export default defineNuxtModule<ModuleOptions>({
Expand All @@ -22,7 +22,7 @@ export default defineNuxtModule<ModuleOptions>({
})

nuxt.options.runtimeConfig.security = defu(nuxt.options.runtimeConfig.security, {
...nuxt.options.security
...nuxt.options.security as RuntimeConfig['security']
})

// Register enabled middlewares to automatically set default values for security response headers.
Expand Down

1 comment on commit d33edd6

@vercel
Copy link

@vercel vercel bot commented on d33edd6 Oct 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nuxt-security – ./

nuxt-security-git-main-baroshem.vercel.app
nuxt-security-baroshem.vercel.app
nuxt-security.vercel.app

Please sign in to comment.