Skip to content

Commit

Permalink
fix:path to file template in open-next.config.ts (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
nojiritakeshi authored Feb 12, 2025
1 parent 762d487 commit 0c26049
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/selfish-bananas-nail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@opennextjs/cloudflare": patch
---

fix path to file template in `open-next.config.ts`.
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import * as path from "node:path";
import path from "node:path";
import url from "node:url";

const templatesDirPath = path.resolve(`${import.meta.dirname}/../../templates`);
const __filename = url.fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const templatesDirPath = path.join(__dirname, "/../../templates");

/**
* Utility for getting the resolved path to the package's templates directory
Expand Down

0 comments on commit 0c26049

Please sign in to comment.