( outputName: string, isServerMode: boolean )
| 3703 | * the server mode is enabled. |
| 3704 | */ |
| 3705 | export function normalizeIndexOutput( |
| 3706 | outputName: string, |
| 3707 | isServerMode: boolean |
| 3708 | ) { |
| 3709 | if (outputName !== 'index' && outputName !== '/index' && isServerMode) { |
| 3710 | return outputName.replace(/\/index$/, ''); |
| 3711 | } |
| 3712 | return outputName; |
| 3713 | } |
| 3714 | |
| 3715 | /** |
| 3716 | * The path to next-server was changed in |
no test coverage detected