summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.changeset/short-islands-sparkle.md5
-rw-r--r--packages/create-astro/src/index.ts2
2 files changed, 6 insertions, 1 deletions
diff --git a/.changeset/short-islands-sparkle.md b/.changeset/short-islands-sparkle.md
new file mode 100644
index 000000000..92d558574
--- /dev/null
+++ b/.changeset/short-islands-sparkle.md
@@ -0,0 +1,5 @@
+---
+'create-astro': patch
+---
+
+Changes create-astro to pull examples from the latest branch
diff --git a/packages/create-astro/src/index.ts b/packages/create-astro/src/index.ts
index aa2cf7c5a..3b61333e0 100644
--- a/packages/create-astro/src/index.ts
+++ b/packages/create-astro/src/index.ts
@@ -64,7 +64,7 @@ export async function main() {
const hash = args.commit ? `#${args.commit}` : '';
- const templateTarget = options.template.includes('/') ? options.template : `snowpackjs/astro/examples/${options.template}`;
+ const templateTarget = options.template.includes('/') ? options.template : `snowpackjs/astro/examples/${options.template}#latest`;
const emitter = degit(`${templateTarget}${hash}`, {
cache: false,