This pull request includes several changes to the codebase. The changes are as follows:
In src/components/ApiDataFetcher.astro:
The getStaticProps function is replaced with a new fetchData function to fetch data at build time.
The ApiDataFetcher component is removed.
In src/pages/[...blog]/index.astro:
The import statement for GetStaticPaths is removed.
The getStaticPaths function is replaced with a new fetchContent function to fetch data at build time using Astro's fetch API.
The return type of fetchContent is updated to match the fetched data.
A new file src/utils/triggerRebuild.ts is added, which contains a function triggerSiteRebuild to trigger a site rebuild using an Express server and Axios.
Summary
Changes in src/components/ApiDataFetcher.astro:
Replaced getStaticProps with fetchData function.
Removed ApiDataFetcher component.
Changes in src/pages/[...blog]/index.astro:
Removed import statement for GetStaticPaths.
Replaced getStaticPaths with fetchContent function.
Updated return type of fetchContent.
Added new file src/utils/triggerRebuild.ts with triggerSiteRebuild function.
Fixes #11.
π Latest improvements to Sweep:
We just released a dashboard to track Sweep's progress on your issue in real-time, showing every stage of the process β from search to planning and coding.
Sweep uses OpenAI's latest Assistant API to plan code changes and modify code! This is 3x faster and significantly more reliable as it allows Sweep to edit code and validate the changes in tight iterations, the same way as a human would.
PR Feedback (click)
[ ] π Sweep Did Well
[ ] π Sweep Needs Improvement
Description
This pull request includes several changes to the codebase. The changes are as follows:
In
src/components/ApiDataFetcher.astro
:getStaticProps
function is replaced with a newfetchData
function to fetch data at build time.ApiDataFetcher
component is removed.In
src/pages/[...blog]/index.astro
:GetStaticPaths
is removed.getStaticPaths
function is replaced with a newfetchContent
function to fetch data at build time using Astro's fetch API.fetchContent
is updated to match the fetched data.A new file
src/utils/triggerRebuild.ts
is added, which contains a functiontriggerSiteRebuild
to trigger a site rebuild using an Express server and Axios.Summary
Changes in
src/components/ApiDataFetcher.astro
:getStaticProps
withfetchData
function.ApiDataFetcher
component.Changes in
src/pages/[...blog]/index.astro
:GetStaticPaths
.getStaticPaths
withfetchContent
function.fetchContent
.Added new file
src/utils/triggerRebuild.ts
withtriggerSiteRebuild
function.Fixes #11.
π Latest improvements to Sweep:
π‘ To get Sweep to edit this pull request, you can: