Skip to content

Conversation

@markbang
Copy link

support shorts feed
feed
fix content <br>
br compare

@vercel
Copy link

vercel bot commented Aug 24, 2025

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

1 Skipped Deployment
Project Deployment Review Updated (UTC)
xlog Ignored Ignored Jan 6, 2026 1:50pm

@github-actions
Copy link

github-actions bot commented Aug 24, 2025

📦 Next.js Bundle Analysis for xlog

This analysis was generated by the Next.js Bundle Analysis action. 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 90.61 KB (-9 B)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

One Page Changed Size

The following page changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load % of Budget (350 KB)
/_error 232 B 90.83 KB 25.95% (+/- <0.01%)
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

The "Budget %" column shows what percentage of your performance budget the First Load total takes up. For example, if your budget was 100kb, and a given page's first load size was 10kb, it would be 10% of your budget. You can also see how much this has increased or decreased compared to the base branch of your PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. If you see "+/- <0.01%" it means that there was a change in bundle size, but it is a trivial enough amount that it can be ignored.

@usagiryu usagiryu requested review from Copilot and yzhe819 August 25, 2025 00:05
Copy link

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 adds support for shorts feed functionality and fixes content formatting issues with line breaks in shorts content. The implementation includes changes to IPFS gateway URLs and introduces dedicated shorts feed endpoints.

  • Adds a new dedicated shorts feed endpoint at /[locale]/site/[site]/feed/shorts/route.ts
  • Integrates shorts content into the main feed with proper sorting and formatting
  • Fixes shorts content display by converting newlines to HTML <br/> tags

Reviewed Changes

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

Show a summary per file
File Description
src/lib/ipfs-parser.ts Updates IPFS gateway URL from 4everland.xyz to 4everland.io
src/lib/env.ts Updates default IPFS gateway URL configuration
src/app/[locale]/site/[site]/feed/shorts/route.ts Creates new dedicated shorts feed endpoint with RSS and JSON support
src/app/[locale]/site/[site]/feed/route.ts Integrates shorts into main feed with optional inclusion via query parameter
src/app/[locale]/site/[site]/[slug]/page.tsx Fixes shorts content display by converting newlines to HTML breaks
package.json Updates Docker Compose command syntax
.env.example Updates example IPFS gateway URL

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

@markbang
Copy link
Author

xLog address: 0x6DdaF3ee1A2337986ccB04bCADA40439885226d1
Discord ID: markbangwu
my xLog address and Discord ID🙏
I want to make xLog more stable. I have been using xLog as my writing platform for almost 500 days. If there are any issues later, I will be happy to help.

@markbang
Copy link
Author

@yzhe819 hello, don't forget to review🥺

@yzhe819
Copy link
Contributor

yzhe819 commented Aug 27, 2025

Thanks for the support, I'll review this later. ❤️

@markbang
Copy link
Author

@yzhe819 hello 👀

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