Skip to content

Commit bd4f513

Browse files
committed
feat: add warning for installing local templates
1 parent 0619319 commit bd4f513

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/utils/find-template.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ export function findTemplate({
2424
throw new Error(`Local template path does not exist: ${absolutePath}`)
2525
}
2626

27+
// Security warning for local templates
28+
log.warning(
29+
'Please install templates you trust and have verified. This feature is only intended for local development and not to clone official templates.',
30+
)
31+
log.info(`View official templates at: https://github.com/solana-foundation/templates`)
32+
2733
if (verbose) {
2834
log.warning(`Using local template from: ${absolutePath}`)
2935
}

0 commit comments

Comments
 (0)