diff --git a/apps/website/src/data/blocks/components.ts b/apps/website/src/data/blocks/components.ts index 7086a5c71..89c39048e 100644 --- a/apps/website/src/data/blocks/components.ts +++ b/apps/website/src/data/blocks/components.ts @@ -60,7 +60,7 @@ function getComponentCode(componentFolder: string, componentName: string) { const getRootFolder = () => { return path.join( - process.env.PROJECT_CWD ?? __dirname + '/../../../../', + process.env.PROJECT_CWD ?? process.cwd(), '/packages/pro/saas-ui/templates/src' ) }