Convert site to fully static - remove runtime Contentful API calls#10
Draft
Convert site to fully static - remove runtime Contentful API calls#10
Conversation
Co-authored-by: Aerilym <5667907+Aerilym@users.noreply.github.com>
Co-authored-by: Aerilym <5667907+Aerilym@users.noreply.github.com>
Co-authored-by: Aerilym <5667907+Aerilym@users.noreply.github.com>
Co-authored-by: Aerilym <5667907+Aerilym@users.noreply.github.com>
Co-authored-by: Aerilym <5667907+Aerilym@users.noreply.github.com>
Co-authored-by: Aerilym <5667907+Aerilym@users.noreply.github.com>
Co-authored-by: Aerilym <5667907+Aerilym@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Remove API requests and make site static
Convert site to fully static - remove runtime Contentful API calls
Jan 15, 2026
Collaborator
|
@copilot Update to do the same sitemap stuff as this PR on the oxen io site oxen-io/oxen-website#69 |
Co-authored-by: Aerilym <5667907+Aerilym@users.noreply.github.com>
Author
Done! Updated to match oxen-website approach (commit 1d69cfc): Changes:
Build now works the same way as oxen-website - sitemap generated during Next.js build, not as a separate pre-build step. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Site was using ISR and SSR to sync content from Contentful at runtime (hourly in prod, every 30s in staging). Now fully static - content only fetched at build time.
Changes
Removed Incremental Static Regeneration
revalidatefrom allgetStaticPropsfallback: 'blocking'→fallback: falsein allgetStaticPathsRemoved Server-Side Rendering
/pages/preview/directory and allgetServerSidePropsusageConverted Runtime API Routes to Build-Time
utils/sitemap.ts- generates sitemap during Next.js buildpages/api/sitemap.ts- now serves static file instead of generating dynamicallypages/index.tsxgetStaticPropsnext.config.jsCleanup
CONTENT_REVALIDATE_RATEconstant.gitignoreto exclude generated sitemap/RSSImpact
Breaking: Content updates now require full rebuild. No automatic runtime sync. Preview functionality removed.
Approach: Matches oxen-website implementation - sitemap generated during Next.js build, not as separate script.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.