-
Notifications
You must be signed in to change notification settings - Fork 257
feat(shorts): support shorts feed and fix shorts content <br>
#2244
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
base: dev
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
📦 Next.js Bundle Analysis for xlogThis analysis was generated by the Next.js Bundle Analysis action. 🤖 🎉 Global Bundle Size Decreased
DetailsThe 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 If you want further insight into what is behind the changes, give @next/bundle-analyzer a try! One Page Changed SizeThe following page changed size from the code in this PR compared to its base branch:
DetailsOnly 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 Any third party scripts you have added directly to your app using the 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. |
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.
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.
|
xLog address: 0x6DdaF3ee1A2337986ccB04bCADA40439885226d1 |
|
@yzhe819 hello, don't forget to review🥺 |
|
Thanks for the support, I'll review this later. ❤️ |
|
@yzhe819 hello 👀 |
support shorts feed


fix content
<br>