diff --git a/packages/nitro/src/context.ts b/packages/nitro/src/context.ts index b3d6c9df2f..faa2bc1338 100644 --- a/packages/nitro/src/context.ts +++ b/packages/nitro/src/context.ts @@ -64,7 +64,7 @@ export interface SigmaInput extends DeepPartial {} export type SigmaPreset = SigmaInput | ((input: SigmaInput) => SigmaInput) -export function getsigmaContext (nuxtOptions: NuxtOptions, input: SigmaInput): SigmaContext { +export function getSigmaContext (nuxtOptions: NuxtOptions, input: SigmaInput): SigmaContext { const defaults: SigmaContext = { timing: true, inlineChunks: true, diff --git a/packages/nitro/src/module/nuxt2.ts b/packages/nitro/src/module/nuxt2.ts index 449f62f13f..77259be301 100644 --- a/packages/nitro/src/module/nuxt2.ts +++ b/packages/nitro/src/module/nuxt2.ts @@ -1,7 +1,7 @@ import fetch from 'node-fetch' import { resolve } from 'upath' import { build, generate, prepare } from '../build' -import { getsigmaContext, SigmaContext } from '../context' +import { getSigmaContext, SigmaContext } from '../context' import { createDevServer } from '../server' import wpfs from '../utils/wpfs' @@ -19,8 +19,8 @@ export default function (nuxt, moduleContainer) { } // Create contexts - const sigmaContext = getsigmaContext(nuxt.options, nuxt.options.sigma || {}) - const sigmaDevContext = getsigmaContext(nuxt.options, { preset: 'local' }) + const sigmaContext = getSigmaContext(nuxt.options, nuxt.options.sigma || {}) + const sigmaDevContext = getSigmaContext(nuxt.options, { preset: 'local' }) // Connect hooks nuxt.addHooks(sigmaContext.nuxtHooks)