Skip to content

Commit bd2e058

Browse files
authored
fix: create the directory before copying the config (#566)
1 parent 5429a1d commit bd2e058

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/open-next/src/build/createAssets.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ export function createCacheAssets(options: buildHelper.BuildOptions) {
223223
const providerPath = path.join(outputDir, "dynamodb-provider");
224224

225225
//Copy open-next.config.mjs into the bundle
226+
fs.mkdirSync(providerPath, { recursive: true });
226227
buildHelper.copyOpenNextConfig(options.buildDir, providerPath);
227228

228229
// TODO: check if metafiles doesn't contain duplicates

0 commit comments

Comments
 (0)