(url: string, options: Options = {})
| 245 | } |
| 246 | |
| 247 | async requestAllPages<T>(url: string, options: Options = {}) { |
| 248 | options = { cache: 'no-cache', ...options }; |
| 249 | const headers = await this.requestHeaders(options.headers || {}); |
| 250 | const processedURL = this.urlFor(url, options); |
| 251 | const allResponses = await getAllResponses( |
| 252 | processedURL, |
| 253 | { ...options, headers }, |
| 254 | 'next', |
| 255 | this.nextUrlProcessor(), |
| 256 | ); |
| 257 | const pages: T[][] = await Promise.all( |
| 258 | allResponses.map((res: Response) => this.parseResponse(res)), |
| 259 | ); |
| 260 | return ([] as T[]).concat(...pages); |
| 261 | } |
| 262 | |
| 263 | generateContentKey(collectionName: string, slug: string) { |
| 264 | return generateContentKey(collectionName, slug); |
nothing calls this directly
no test coverage detected