Commit 1b3b6ce7 authored by Tim Neutkens's avatar Tim Neutkens

Add todo

parent 9be7affe
......@@ -547,9 +547,16 @@ export class NextInstance {
pathname: string,
opts?: import('node-fetch').RequestInit
) {
// TODO: Switch to built-in fetch instead of using node-fetch.
return fetchViaHTTP(this.url, pathname, null, opts)
}
/**
* Performs a fetch request to the NextInstance with the options provided.
* @param pathname The pathname to fetch
* @param opts the optional options to pass to the underlying fetch
* @returns
*/
public async webFetch(pathname: string, opts?: Parameters<typeof fetch>[1]) {
return fetch(this.url + pathname, opts)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment