Skip to content
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

🚏 Blogs to App Router #2722

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

🚏 Blogs to App Router #2722

wants to merge 41 commits into from

Conversation

joshbermanssw
Copy link
Contributor

@joshbermanssw joshbermanssw commented Jan 13, 2025

As per #2555 we have moved the blogs routes to the app router

Not many changes to the actual logic, i've introduced some extra utility functions such like extractTextFromBody and extrapolated formatDate to be used amongst docs and blogs.

Removed alot of styled jsx which is a double whammy because we want to move away from using this 👍

Copy link

vercel bot commented Jan 13, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tina-io ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 20, 2025 4:14am

@joshbermanssw joshbermanssw changed the title majority of blogs to app rtr 🚏 Blogs to App Router Jan 13, 2025
@joshbermanssw joshbermanssw marked this pull request as ready for review January 13, 2025 06:44
@joshbermanssw joshbermanssw requested a review from a team as a code owner January 13, 2025 06:44
app/[...not_found]/page.tsx Show resolved Hide resolved
app/blog/[...slug]/BlogPageClient.tsx Outdated Show resolved Hide resolved
app/blog/[...slug]/page.tsx Show resolved Hide resolved
app/blog/[...slug]/page.tsx Outdated Show resolved Hide resolved
app/blog/page/[page_index]/page.tsx Outdated Show resolved Hide resolved
app/global-error.tsx Outdated Show resolved Hide resolved
app/not-found.tsx Show resolved Hide resolved
components/blocks/RecentPosts/RecentPosts.tsx Show resolved Hide resolved
Comment on lines 24 to 28
<>
<DefaultSeo openGraph={{ url: 'https://tina.io' + router.asPath }} />
<DefaultSeo openGraph={{ url: 'https://tina.io' + pathname }} />
<Layout sticky={false}>
<DocsLayoutGrid>
<Sidebar>
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't know much about you you guys populate metadata on your pages but there's a few SEO props that are visible on the live page that aren't there on the staging branch. I'd double check your configuration

image
Figure: SEO props on 'tina.io/blog' that are not there in staging

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added them back 👍

Screenshot 2025-01-20 at 2 42 05 pm
Figure: Local showing blog SEO correctly

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm still not seeing the googlebot tag in staging. I can see it on other staging URLS so it seems to be related to this branch

pages/404.tsx Show resolved Hide resolved
joshbermanssw and others added 2 commits January 20, 2025 12:30
Co-authored-by: Caleb Williams [SSW] <[email protected]>
@Calinator444
Copy link
Contributor

Your 404 page still seems to be returning a 500 level error in staging

image

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.

3 participants