Skip to content

Commit

Permalink
improve documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ymc9 committed Apr 5, 2024
1 parent 9fe1fd0 commit 0841d86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime/src/enhancements/password.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function withPassword<DbClient extends object = any>(
);
}

// `bcryptjs.hash` is good for performance but it doesn't work in edge runtime,
// `bcryptjs.hash` is good for performance but it doesn't work in vercel edge runtime,
// so we fall back to `bcrypt.hash` in that case.

// eslint-disable-next-line no-var
Expand Down
2 changes: 2 additions & 0 deletions packages/schema/src/plugins/plugin-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ export function ensureDefaultOutputFolder(options: PluginRunnerOptions) {
},
};

// create stubs for zod exports to make bundlers that statically
// analyze imports (like Next.js) happy
for (const zodFolder of ['models', 'input', 'objects']) {
fs.mkdirSync(path.join(output, 'zod', zodFolder), { recursive: true });
fs.writeFileSync(path.join(output, 'zod', zodFolder, 'index.js'), '');
Expand Down

0 comments on commit 0841d86

Please sign in to comment.