We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
create-astro
1 parent 91e4ba0 commit e6e2160Copy full SHA for e6e2160
2 files changed
.changeset/lemon-tools-rescue.md
@@ -0,0 +1,5 @@
1
+---
2
+'create-astro': patch
3
4
+
5
+Fixes support for using templates from any GitHub repository
packages/create-astro/src/index.ts
@@ -108,7 +108,10 @@ export async function main() {
108
109
const hash = args.commit ? `#${args.commit}` : '';
110
111
- const templateTarget = `withastro/astro/examples/${options.template}#latest`;
+ // Don't touch the template name if a GitHub repo was provided, ex: `--template cassidoo/shopify-react-astro`
112
+ const templateTarget = options.template.includes('/')
113
+ ? options.template
114
+ : `withastro/astro/examples/${options.template}#latest`;
115
116
const emitter = degit(`${templateTarget}${hash}`, {
117
cache: false,
0 commit comments