Skip to content

Commit

Permalink
chore: use correct path
Browse files Browse the repository at this point in the history
  • Loading branch information
Pagebakers committed Nov 4, 2023
1 parent 31c4d31 commit 9787c10
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions apps/website/src/data/blocks/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,12 @@ function getComponentCode(componentFolder: string, componentName: string) {
}

const getRootFolder = () => {
return path.join(
process.env.PROJECT_CWD ??
process.env.TEMPLATE_ROOT ??
__dirname + '/../../../../',
'/packages/pro/saas-ui/templates/src'
return (
process.env.TEMPLATE_ROOT ??
path.join(
process.env.PROJECT_CWD ?? __dirname + '/../../../../',
'/packages/pro/saas-ui/templates/src'
)
)
}

Expand Down

0 comments on commit 9787c10

Please sign in to comment.