Skip to content

Implemented ISR (Incremental Static Regeneration) for website #228

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 19 commits into
base: main
Choose a base branch
from

Conversation

1pxone
Copy link
Contributor

@1pxone 1pxone commented Jul 21, 2025

No description provided.

Copy link

changeset-bot bot commented Jul 21, 2025

🦋 Changeset detected

Latest commit: 90e5d0a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@rushdb/javascript-sdk Minor
rushdb-dashboard Minor
rushdb-core Minor
rushdb-website Minor
rushdb-docs Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@1pxone 1pxone requested a review from Copilot August 17, 2025 20:09
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements ISR (Incremental Static Regeneration) for the website by migrating from getServerSideProps to getStaticProps in blog and pricing pages, introduces dynamic pricing components with a calculator, and includes significant refactoring of the billing system to support per-project pricing and managed instances.

Key changes include:

  • Migration to Next.js ISR for improved performance and caching
  • Implementation of dynamic pricing calculator with tier recommendations
  • Refactoring billing system to support per-project pricing models

Reviewed Changes

Copilot reviewed 150 out of 154 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
website/src/pages/pricing.tsx Migrated from getServerSideProps to getStaticProps with ISR
website/src/pages/blog/index.tsx Added ISR with 1-hour revalidation
website/src/pages/blog/[slug].tsx Implemented getStaticPaths and ISR for blog posts
website/src/sections/blog/remote-utils.ts Added Next.js caching with unstable_cache
website/src/sections/Pricing.tsx Complete redesign with new pricing calculator
platform/dashboard/src/pages/project/new.tsx Enhanced project creation with managed instance support
platform/dashboard/src/features/billing/stores/plans.ts Refactored billing data structure and state management
Comments suppressed due to low confidence (1)

website/src/components/PricingCalculator.tsx:70

  • [nitpick] Hard-coded phone numbers and personal data in sample records could be problematic. Use clearly fake/example data patterns (e.g., 555-0000) to avoid potential issues.
    preferred_contact_method: 'email'

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants