Skip to content

Commit 0348fac

Browse files
authored
fix: resolve run-config.json in runtime from PLUGIN_DIR not cwd (#285)
1 parent e00e6a2 commit 0348fac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/run/config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { PLUGIN_DIR, RUN_CONFIG } from './constants.js'
1010
* Get Next.js config from the build output
1111
*/
1212
export const getRunConfig = async () => {
13-
return JSON.parse(await readFile(resolve(RUN_CONFIG), 'utf-8'))
13+
return JSON.parse(await readFile(resolve(PLUGIN_DIR, RUN_CONFIG), 'utf-8'))
1414
}
1515

1616
/**

0 commit comments

Comments
 (0)