Skip to content

fix: remove await connection() workaround on 404 pages#2425

Open
agurtovoy wants to merge 1 commit into
integrations/makeswiftfrom
fix/remove-await-connection-workaround
Open

fix: remove await connection() workaround on 404 pages#2425
agurtovoy wants to merge 1 commit into
integrations/makeswiftfrom
fix/remove-await-connection-workaround

Conversation

@agurtovoy

@agurtovoy agurtovoy commented Jun 14, 2025

Copy link
Copy Markdown
Contributor

What/Why?

This was originally put in place to work around the issue of non-published pages not being editable in the builder. That issue has long since been resolved, so the workaround is no longer necessary.

Testing

As an extra test, here's a demo of a 404 page with an editable Makeswift component on it:

Kapture.2025-06-13.at.21.52.13.mp4

@changeset-bot

changeset-bot Bot commented Jun 14, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0319791

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented Jun 14, 2025

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
catalyst Ready Ready Preview, Comment Jun 11, 2026 6:44pm
catalyst-canary Ready Ready Preview, Comment Jun 11, 2026 6:44pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
catalyst-au Ignored Ignored Jun 11, 2026 6:44pm
catalyst-uk Ignored Ignored Preview Jun 11, 2026 6:44pm

Request Review

@agurtovoy agurtovoy force-pushed the fix/remove-await-connection-workaround branch from 71f19a4 to cb6a6cd Compare June 14, 2025 02:56
@agurtovoy agurtovoy marked this pull request as ready for review June 14, 2025 02:57
@agurtovoy agurtovoy requested a review from a team as a code owner June 14, 2025 02:57

@fikrikarim fikrikarim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

From the original PR, the 404 pages not being editable only happened when the catch-all page is PPR (◐) instead of server-rendered (ƒ).

I checked the preview deployment from this branch, and the catch-all page is server-rendered.

ƒ /[locale]/[...rest]

This is probably because we're calling functions that force the page to be server-rendered.

I'm worried that this issue will resurface again in the future if the catch-all page is updated to be properly rendered with PPR.

Perhaps we can test if the 404 page is still editable when the page is rendered with PPR?

@agurtovoy agurtovoy force-pushed the fix/remove-await-connection-workaround branch from cb6a6cd to 0319791 Compare June 11, 2026 18:43
@agurtovoy agurtovoy requested a review from a team as a code owner June 11, 2026 18:43
@github-actions

Copy link
Copy Markdown
Contributor

Bundle Size Report

Comparing against baseline from 4d511dc (2026-06-11).

No bundle size changes detected.

@github-actions

github-actions Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Unlighthouse Performance Comparison — Vercel

Comparing PR preview deployment Unlighthouse scores vs production Unlighthouse scores.

Summary Score

Aggregate score across all categories as reported by Unlighthouse.

Prod Desktop Prod Mobile Preview Desktop Preview Mobile
Score 87 90 91 94

Category Scores

Category Prod Desktop Prod Mobile Preview Desktop Preview Mobile
Performance 71 78 72 91
Accessibility 91 91 95 96
Best Practices 100 100 100 100
SEO 89 89 100 100

Core Web Vitals

Metric Prod Desktop Prod Mobile Preview Desktop Preview Mobile
LCP 4.6 s 6.2 s 4.2 s 3.5 s
CLS 0 0 0 0
FCP 1.1 s 1.1 s 1.2 s 1.2 s
TBT 20 ms 20 ms 30 ms 10 ms
Max Potential FID 80 ms 90 ms 80 ms 70 ms
Time to Interactive 6.5 s 6.4 s 5.9 s 5.6 s

Full Unlighthouse report →

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