Skip to content

Commit

Permalink
Merge branch 'main' into pr/KubesDavid/466
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Sep 5, 2022
2 parents 780d69f + b0a3f43 commit 0ca371f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/rollup/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ export const getRollupConfig = (nitro: Nitro) => {
// Build-time environment variables
const buildEnvVars = {
NODE_ENV: nitro.options.dev ? 'development' : (nitro.options.preset === 'nitro-prerender' ? 'prerender' : 'production'),
prerender: nitro.options.preset === 'nitro-prerender',
server: true,
client: false,
dev: String(nitro.options.dev),
Expand Down
4 changes: 2 additions & 2 deletions src/types/handler.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Handler, CompatibilityEvent, H3Error } from 'h3'
import type { Handler, EventHandler, CompatibilityEvent, H3Error } from 'h3'

export interface NitroEventHandler {
/**
Expand Down Expand Up @@ -41,7 +41,7 @@ export interface NitroDevEventHandler {
* Event handler
*
*/
handler: Handler
handler: Handler | EventHandler
}

export type NitroErrorHandler = (error: H3Error, event: CompatibilityEvent) => void | Promise<void>

0 comments on commit 0ca371f

Please sign in to comment.