Commit 37ece7d5 authored by Ben Gubler's avatar Ben Gubler

fix: remove redundant type validation of config exports

parent d8e1aca8
...@@ -515,16 +515,6 @@ export function generateValidatorFile( ...@@ -515,16 +515,6 @@ export function generateValidatorFile(
getStaticPaths?: (context: any) => Promise<any> | any getStaticPaths?: (context: any) => Promise<any> | any
getServerSideProps?: (context: any) => Promise<any> | any getServerSideProps?: (context: any) => Promise<any> | any
getInitialProps?: (context: any) => Promise<any> | any getInitialProps?: (context: any) => Promise<any> | any
/**
* Segment configuration for legacy Pages Router pages.
* Validated at build-time by parsePagesSegmentConfig.
*/
config?: {
amp?: boolean | 'hybrid' | string // necessary for JS
maxDuration?: number
runtime?: 'edge' | 'experimental-edge' | 'nodejs' | string // necessary unless config is exported as const
regions?: string[]
}
} }
` `
...@@ -572,8 +562,6 @@ export function generateValidatorFile( ...@@ -572,8 +562,6 @@ export function generateValidatorFile(
responseLimit?: string | number | boolean responseLimit?: string | number | boolean
externalResolver?: boolean externalResolver?: boolean
} }
runtime?: 'edge' | 'experimental-edge' | 'nodejs' | string // necessary unless config is exported as const
maxDuration?: number
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment