summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/build.ts2
-rw-r--r--src/compiler/codegen/content.ts4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/build.ts b/src/build.ts
index f5e825ea4..db30b70d2 100644
--- a/src/build.ts
+++ b/src/build.ts
@@ -40,7 +40,7 @@ const logging: LogOptions = {
dest: defaultLogDestination,
};
-/** Return contents of astro/pages */
+/** Return contents of src/pages */
async function allPages(root: URL) {
const api = new fdir()
.filter((p) => /\.(astro|md)$/.test(p))
diff --git a/src/compiler/codegen/content.ts b/src/compiler/codegen/content.ts
index e6377eec0..fb8f9e307 100644
--- a/src/compiler/codegen/content.ts
+++ b/src/compiler/codegen/content.ts
@@ -23,8 +23,8 @@ const crawler = new fdir();
function globSearch(spec: string, { filename }: { filename: string }): string[] {
try {
// Note: fdir’s glob requires you to do some work finding the closest non-glob folder.
- // For example, this fails: .glob("./post/*.md").crawl("/…/astro/pages") ❌
- // …but this doesn’t: .glob("*.md").crawl("/…/astro/pages/post") ✅
+ // For example, this fails: .glob("./post/*.md").crawl("/…/src/pages") ❌
+ // …but this doesn’t: .glob("*.md").crawl("/…/src/pages/post") ✅
let globDir = '';
let glob = spec;
for (const part of spec.split('/')) {