Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@ const InstantConfigObjectSchema = z
})
.strict()

const InstantConfigSchema = z.union([
InstantConfigObjectSchema,
z.literal(true),
z.literal(false),
])
const InstantConfigSchema = z.union([InstantConfigObjectSchema, z.boolean()])

const PrefetchSchema = z.enum([
'auto',
Expand All @@ -43,7 +39,7 @@ const PrefetchSchema = z.enum([
'force-runtime',
])

export type Instant = InstantConfig | true | false
export type Instant = InstantConfig | boolean

export type Prefetch =
| 'auto'
Expand Down
13 changes: 6 additions & 7 deletions packages/next/src/server/config-shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,12 @@ export function resolveCssChunkingMode(
return 'loose'
}

export type ValidationLevel =
| 'warning'
| 'manual-warning'
| 'experimental-error'
| 'experimental-manual-error'

export interface ExperimentalConfig {
/**
* A string that is incorporated into content-addressed output filenames
Expand Down Expand Up @@ -1357,13 +1363,6 @@ export type ExportPathMap = {
*
* Read more: [Next.js Docs: `next.config.js`](https://nextjs.org/docs/app/api-reference/config/next-config-js)
*/

export type ValidationLevel =
| 'warning'
| 'manual-warning'
| 'experimental-error'
| 'experimental-manual-error'

export interface NextConfig {
allowedDevOrigins?: string[]

Expand Down
Loading