-
Notifications
You must be signed in to change notification settings - Fork 2.5k
fix(blog): rename building to blogs with redirect #1604
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
There was a problem hiding this 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/toapp/(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
/blogindex 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
9 files reviewed, no comments
* 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
Summary
Type of Change
Testing
NA
Checklist