From ff7af04b6feecde3a20bb671183e254c13d3326e Mon Sep 17 00:00:00 2001 From: David Abram Date: Thu, 2 Jan 2025 20:30:30 +0100 Subject: [PATCH 1/4] turbo fix --- apps/blog/src/pages/index.astro | 2 +- turbo.json | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/apps/blog/src/pages/index.astro b/apps/blog/src/pages/index.astro index 65902416..d77ad2c7 100644 --- a/apps/blog/src/pages/index.astro +++ b/apps/blog/src/pages/index.astro @@ -9,7 +9,7 @@ const markdownPosts = await getCollection("posts"); const authorsCollection = await getCollection("authors"); -const pages = (await Astro.glob("../pages/**/*.astro")).filter( +const pages = (await import.vite.glob("../pages/**/*.astro")).filter( (page) => !page.url?.includes("[") && !page.url?.includes("index.astro"), ); diff --git a/turbo.json b/turbo.json index c3b687eb..158acd0b 100644 --- a/turbo.json +++ b/turbo.json @@ -1,10 +1,15 @@ { - "$schema": "https://turbo.build/schema.json", "tasks": { "build": { "dependsOn": ["^build"], "inputs": ["$TURBO_DEFAULT$", ".env*"], - "outputs": [".next/**", "!.next/cache/**"] + "outputs": [] + }, + "apps/blog#build": { + "outputs": ["apps/blog/dist/**"] + }, + "apps/website#build": { + "outputs": ["apps/website/dist/**"] }, "lint": { "dependsOn": ["^lint"] From 09755b22c765e55c7d60a6cd41bd5bd0b86b395b Mon Sep 17 00:00:00 2001 From: David Abram Date: Thu, 2 Jan 2025 20:32:56 +0100 Subject: [PATCH 2/4] fix --- apps/blog/src/pages/index.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/blog/src/pages/index.astro b/apps/blog/src/pages/index.astro index d77ad2c7..756b0153 100644 --- a/apps/blog/src/pages/index.astro +++ b/apps/blog/src/pages/index.astro @@ -9,7 +9,7 @@ const markdownPosts = await getCollection("posts"); const authorsCollection = await getCollection("authors"); -const pages = (await import.vite.glob("../pages/**/*.astro")).filter( +const pages = import.meta.glob("../pages/**/*.astro").filter( (page) => !page.url?.includes("[") && !page.url?.includes("index.astro"), ); From f40224bc932e3ace75d49c140ee7e0a5018c6471 Mon Sep 17 00:00:00 2001 From: David Abram Date: Thu, 2 Jan 2025 20:35:50 +0100 Subject: [PATCH 3/4] fix --- apps/blog/src/pages/index.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/blog/src/pages/index.astro b/apps/blog/src/pages/index.astro index 756b0153..734b1199 100644 --- a/apps/blog/src/pages/index.astro +++ b/apps/blog/src/pages/index.astro @@ -9,7 +9,7 @@ const markdownPosts = await getCollection("posts"); const authorsCollection = await getCollection("authors"); -const pages = import.meta.glob("../pages/**/*.astro").filter( +const pages = Astro.glob("../pages/**/*.astro").filter( (page) => !page.url?.includes("[") && !page.url?.includes("index.astro"), ); From e3a882107bb13ec164bdf3fda67b7e6c0904b861 Mon Sep 17 00:00:00 2001 From: David Abram Date: Thu, 2 Jan 2025 20:36:57 +0100 Subject: [PATCH 4/4] fixes --- apps/blog/src/pages/index.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/blog/src/pages/index.astro b/apps/blog/src/pages/index.astro index 734b1199..65902416 100644 --- a/apps/blog/src/pages/index.astro +++ b/apps/blog/src/pages/index.astro @@ -9,7 +9,7 @@ const markdownPosts = await getCollection("posts"); const authorsCollection = await getCollection("authors"); -const pages = Astro.glob("../pages/**/*.astro").filter( +const pages = (await Astro.glob("../pages/**/*.astro")).filter( (page) => !page.url?.includes("[") && !page.url?.includes("index.astro"), );