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

perf(nuxt): don't check for prerendered route in dev for server page #26061

Merged
merged 1 commit into from Mar 4, 2024

Conversation

huang-julien
Copy link
Member

@huang-julien huang-julien commented Mar 3, 2024

πŸ”— Linked issue

Hey πŸ‘‹ this PR fixes #24954 (comment)

There's no need to fetch the manifest for prerender in dev mode. There's also another issue for the isPrerendered helper in dev mode fixedby #26063

❓ Type of change

  • πŸ“– Documentation (updates to the documentation, readme or JSdoc annotations)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have added tests (if possible).
  • I have updated the documentation accordingly.

Copy link

stackblitz bot commented Mar 3, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@huang-julien huang-julien changed the title fix(nuxt): don't check for prerendered route in dev for server page pref(nuxt): don't check for prerendered route in dev for server page Mar 3, 2024
@DamianGlowala DamianGlowala changed the title pref(nuxt): don't check for prerendered route in dev for server page perf(nuxt): don't check for prerendered route in dev for server page Mar 4, 2024
@danielroe danielroe merged commit 23fbe85 into main Mar 4, 2024
36 of 40 checks passed
@danielroe danielroe deleted the fix/prerendererror branch March 4, 2024 10:32
@@ -42,7 +42,7 @@ export const createIslandPage = (name: string) => {
})

const route = useRoute()
const path = await isPrerendered(route.path) ? route.path : route.fullPath.replace(/#.*$/, '')
const path = !import.meta.dev && await isPrerendered(route.path) ? route.path : route.fullPath.replace(/#.*$/, '')
Copy link
Member

Choose a reason for hiding this comment

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

we could also update this in the isPrerendered function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants