Skip to content

Conversation

@waleedlatif1
Copy link
Collaborator

Summary

  • rename building to blogs with redirect from /building to /blog

Type of Change

  • Other: new path

Testing

NA

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel
Copy link

vercel bot commented Oct 11, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
docs Skipped Skipped Oct 11, 2025 6:42pm

@waleedlatif1 waleedlatif1 merged commit 720c38a into staging Oct 11, 2025
4 checks passed
@waleedlatif1 waleedlatif1 deleted the fix/blogs branch October 11, 2025 18:42
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

Greptile Overview

Summary

This PR successfully renames the /building route to /blog with comprehensive backward compatibility. The changes include:

  • Permanent 301 redirect from /building/:path* to /blog/:path* in Next.js config, ensuring existing links and bookmarks continue to work
  • Route restructure moving blog content from app/(landing)/building/ to app/(landing)/blog/ directory
  • Consistent updates across footer navigation, sitemap, and theme provider
  • Blog post migration moving the OpenAI vs n8n vs Sim comparison article to the new path
  • Server-side redirect at /blog index that routes to the main blog post

The implementation is clean and thorough. All references to the old path have been updated, and the permanent redirect ensures SEO preservation and unbroken user experience for existing links.

Confidence Score: 5/5

  • This PR is safe to merge with no identified issues
  • The changes are straightforward and complete: a simple route rename with proper redirect configuration. All references have been consistently updated across the codebase (footer, sitemap, theme provider), and the permanent 301 redirect ensures backward compatibility for SEO and existing links. The implementation follows Next.js best practices for redirects.
  • No files require special attention

Important Files Changed

File Analysis

Filename Score Overview
apps/sim/next.config.ts 5/5 Added permanent redirect from /building/:path* to /blog/:path* for legacy URL support
apps/sim/app/(landing)/blog/page.tsx 5/5 New blog index page that redirects to the OpenAI vs n8n vs Sim blog post
apps/sim/app/(landing)/blog/layout.tsx 5/5 New blog layout with navigation, main content area, and full-width footer
apps/sim/app/(landing)/components/footer/footer.tsx 5/5 Updated footer link from "Building" to "Blog" with corresponding href change
apps/sim/app/sitemap.ts 5/5 Updated blog post URL from /building/ to /blog/ and refreshed lastModified date
apps/sim/app/theme-provider.tsx 5/5 Updated theme provider to apply light theme to /blog path instead of /building

Sequence Diagram

sequenceDiagram
    participant User
    participant Next.js
    participant BuildingRoute as /building/*
    participant BlogRoute as /blog/*
    participant BlogPost as /blog/openai-vs-n8n-vs-sim
    
    Note over User,BlogPost: Legacy URL Support Flow
    User->>Next.js: Request /building/openai-vs-n8n-vs-sim
    Next.js->>BuildingRoute: Match /building/:path*
    BuildingRoute->>Next.js: Apply permanent redirect (301)
    Next.js->>BlogRoute: Redirect to /blog/openai-vs-n8n-vs-sim
    BlogRoute->>BlogPost: Route to blog post
    BlogPost->>User: Return blog content
    
    Note over User,BlogPost: Direct Blog URL Flow
    User->>Next.js: Request /blog
    Next.js->>BlogRoute: Route to /blog page
    BlogRoute->>BlogPost: Server-side redirect
    BlogPost->>User: Return blog content
    
    Note over User,BlogPost: Theme & Footer Updates
    User->>Next.js: Access /blog route
    Next.js->>Next.js: Apply light theme (theme-provider)
    Next.js->>User: Render with updated footer link
Loading

9 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

waleedlatif1 added a commit that referenced this pull request Oct 12, 2025
* improvement(performance): remove unused source/target indices, add index on snapshot id (#1603)

* fix(blog): rename building to blogs with redirect (#1604)

* improvement(privacy-policy): updated privacy policy for google (#1602)

* updated privacy policy for google

* update terms, privacy, and emails to incl address and update verbiage

* feat(guardrails): added guardrails block/tools and docs (#1605)

* Adding guardrails block

* ack PR comments

* cleanup checkbox in dark mode

* cleanup

* fix supabase tools

* fix(inference-billing): fix inference billing when stream is true via API, add drag-and-drop functionality to deployed chat (#1606)

* fix(inference): fix inference billing when stream is true via API

* add drag-and-drop to deployed chat

* feat(mistal): added mistral as a provider, updated model prices (#1607)

* feat(mistal): added mistral as a provider, updated model prices

* remove the ability for a block to reference its own outluts

* fixed order of responses for guardrails block

* feat(versions): added the ability to rename deployment versions (#1610)

* fix(vulns): fix various vulnerabilities and enhanced code security (#1611)

* fix(vulns): fix SSRF vulnerabilities

* cleanup

* cleanup

* regen docs

* remove unused deps

* fix failing tests

* cleanup

* update deps

* regen bun lock
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