mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-22 03:12:41 +00:00
Merge remote-tracking branch 'origin/main' into feat/oxc
This commit is contained in:
commit
d39e64964e
@ -29,7 +29,9 @@ export default defineNuxtRouteMiddleware(async (to) => {
|
||||
// We pretend to have navigated to the invalid route so
|
||||
// that the user can return to the previous page with
|
||||
// the back button.
|
||||
window?.history.pushState({}, '', to.fullPath)
|
||||
if (typeof window !== 'undefined') {
|
||||
window.history.pushState({}, '', to.fullPath)
|
||||
}
|
||||
})
|
||||
// We stop the navigation immediately before it resolves
|
||||
// if there is no other route matching it.
|
||||
|
@ -420,7 +420,7 @@ export default defineUntypedSchema({
|
||||
|
||||
/**
|
||||
* Keep showing the spa-loading-template until suspense:resolve
|
||||
* @see [Nuxt Issues #24770](https://github.com/nuxt/nuxt/issues/21721)
|
||||
* @see [Nuxt Issues #21721](https://github.com/nuxt/nuxt/issues/21721)
|
||||
* @type {'body' | 'within'}
|
||||
*/
|
||||
spaLoadingTemplateLocation: {
|
||||
|
Loading…
Reference in New Issue
Block a user