Skip to content

Commit c6ee2c9

Browse files
committed
fix:path to file template in open-next.config.ts
1 parent 6a3e35e commit c6ee2c9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/selfish-bananas-nail.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@opennextjs/cloudflare": patch
3+
---
4+
5+
fix path to file template in `open-next.config.ts`.

packages/cloudflare/src/utils/get-package-templates-dir-path.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import * as path from "node:path";
22

3-
const templatesDirPath = path.resolve(`${import.meta.dirname}/../../templates`);
3+
const __dirname = path.dirname(new URL(import.meta.url).pathname);
4+
const templatesDirPath = path.resolve(`${__dirname}/../../templates`);
45

56
/**
67
* Utility for getting the resolved path to the package's templates directory

0 commit comments

Comments
 (0)