-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
perf: create (use-page-wrapper) route group and replace WithLayout
from /bookings/[status]
page + 8 low-risk single pages
#18737
perf: create (use-page-wrapper) route group and replace WithLayout
from /bookings/[status]
page + 8 low-risk single pages
#18737
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Skipped Deployments
|
WithLayout
from /bookings/[status]
page
WithLayout
from /bookings/[status]
pageWithLayout
from /bookings/[status]
page
Graphite Automations"Add consumer team as reviewer" took an action on this PR • (01/17/25)1 reviewer was added to this PR based on Keith Williams's automation. |
@@ -3,10 +3,10 @@ const { nextJsOrgRewriteConfig } = require("./getNextjsOrgRewriteConfig"); | |||
/** Needed to rewrite public booking page, gets all static pages but [user] */ | |||
// Pages found here are excluded from redirects in beforeFiles in next.config.js | |||
let pages = (exports.pages = glob | |||
.sync("{pages,app}/**/[^_]*.{tsx,js,ts}", { cwd: __dirname }) | |||
.sync("{pages,app,app/(use-page-wrapper)}/**/[^_]*.{tsx,js,ts}", { cwd: __dirname }) |
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.
including dirs inside app/(use-page-wrapper)
E2E results are ready! |
* move /403 and /500 * move /auth/error * move /connect-and-join * move /enterprise * move /maintenance * move /more * move /upgrade
WithLayout
from /bookings/[status]
pageWithLayout
from /bookings/[status]
page + 8 low-risk single pages
…yout-from-bookings-status-page
@@ -27,4 +26,4 @@ async function Error403() { | |||
); | |||
} | |||
|
|||
export default WithLayout({ ServerPage: Error403 }); | |||
export default Error403; |
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.
all the pages migrated in this PR do not have getServerSideProps
, so they are lower-risk pages
WithLayout
from /bookings/[status]
page + 8 low-risk single pagesWithLayout
from /bookings/[status]
page + 8 low-risk single pages
…yout-from-bookings-status-page
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.
Pages are working as expected
What does this PR do?
WithLayout
and relying on a single layout file. We need to migrate all routes that useWithLayout
into(use-page-wrapper)
route group./bookings/[status]
+ 8 single pages below to use a common layout (all the pages migrated in this PR do not havegetServerSideProps
, so they are lower-risk pages)Mandatory Tasks (DO NOT REMOVE)
How should this be tested?