Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
37ece7d5
Commit
37ece7d5
authored
Aug 25, 2025
by
Ben Gubler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: remove redundant type validation of config exports
parent
d8e1aca8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
typegen.ts
packages/next/src/server/lib/router-utils/typegen.ts
+0
-12
No files found.
packages/next/src/server/lib/router-utils/typegen.ts
View file @
37ece7d5
...
@@ -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
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment