Skip to content

Commit

Permalink
chore: add template root env
Browse files Browse the repository at this point in the history
  • Loading branch information
Pagebakers committed Nov 4, 2023
1 parent 378608a commit 31c4d31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion apps/website/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ let config = {
},
experimental: {
externalDir: true,
outputFileTracingRoot: path.join(__dirname, '../../'),
},
async redirects() {
return [
Expand Down
4 changes: 3 additions & 1 deletion apps/website/src/data/blocks/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ function getComponentCode(componentFolder: string, componentName: string) {

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

0 comments on commit 31c4d31

Please sign in to comment.