Skip to content

Commit

Permalink
fix(cli): Fix checking SSR node_modules dir before reinstall on dev
Browse files Browse the repository at this point in the history
  • Loading branch information
leomp12 committed Aug 1, 2023
1 parent dff484c commit aad3bf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const copyFunctionsConfig = async (isDev = false) => {
const codebaseDir = joinPath(functionsDir, codebase);
const isSSR = codebase === 'ssr';
await fs.ensureDir(joinPath(codebaseDir, 'content'));
if (isDev && isSSR && !fs.existsSync(joinPath(functionsDir, 'node_modules'))) {
if (isDev && isSSR && !fs.existsSync(joinPath(functionsDir, 'ssr', 'node_modules'))) {
await $`npm --prefix "functions/ssr" i`;
}
for (let ii = 0; ii < filesToCopy.length; ii++) {
Expand Down

0 comments on commit aad3bf4

Please sign in to comment.