fix: bind adapt to class

Signed-off-by: Pascal Vorwerk <info@fossores.de>
This commit is contained in:
2024-01-29 07:57:53 +01:00
parent 60e096014d
commit fbc08aeed8
2 changed files with 2 additions and 1 deletions

View File

@@ -115,6 +115,7 @@ class CloudflareAdapter implements Adapter {
private options: AdapterOptions;
constructor(options: AdapterOptions) {
this.options = options;
this.adapt = this.adapt.bind(this);
}
async adapt(builder: Builder) {
const files = fileURLToPath(new URL("./files", import.meta.url).href);