* Validate if the entrypoint is allowed to be used
(entrypoint: string)
| 119 | * Validate if the entrypoint is allowed to be used |
| 120 | */ |
| 121 | function validateEntrypoint(entrypoint: string) { |
| 122 | if ( |
| 123 | !/package\.json$/.exec(entrypoint) && |
| 124 | !/next\.config\.js$/.exec(entrypoint) |
| 125 | ) { |
| 126 | throw new NowBuildError({ |
| 127 | message: |
| 128 | 'Specified "src" for "@vercel/next" has to be "package.json" or "next.config.js"', |
| 129 | code: 'NEXT_INCORRECT_SRC', |
| 130 | }); |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | /** |
| 135 | * Exclude certain files from the files object |
no outgoing calls
no test coverage detected