Skip to content

Commit ff9988e

Browse files
committed
remove absolute check
1 parent f843adb commit ff9988e

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

.changeset/three-oranges-whisper.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
"@opennextjs/aws": minor
33
---
44

5-
fix: support absolute paths for OpenNext configs
5+
fix: support absolute paths for OpenNext config compilation utility
66

77
Compiling OpenNext configs will now support the ability to pass in either absolute or relative paths, instead of treating any input as a relative path.
8-
9-
Further, the CLI will now treat absolute paths as absolute, instead of always treating them as relative. Relative paths should not start with a `/`, i.e. you should use `./config-path.ts` instead of `/config-path.ts`.

packages/open-next/src/build.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ export async function build(
3333
const openNextDistDir = url.fileURLToPath(new URL(".", import.meta.url));
3434

3535
const { config, buildDir } = await compileOpenNextConfig(
36-
openNextConfigPath && path.isAbsolute(openNextConfigPath)
37-
? openNextConfigPath
38-
: path.join(baseDir, openNextConfigPath ?? "open-next.config.ts"),
36+
path.join(baseDir, openNextConfigPath ?? "open-next.config.ts"),
3937
{ nodeExternals },
4038
);
4139

0 commit comments

Comments
 (0)