Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

refactor: use getRouteRules #8251

Merged
merged 1 commit into from Oct 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/nuxt/package.json
Expand Up @@ -58,7 +58,7 @@
"knitwork": "^0.1.2",
"magic-string": "^0.26.7",
"mlly": "^0.5.16",
"nitropack": "npm:nitropack-edge@0.6.0-27766621.5c2c313",
"nitropack": "npm:nitropack-edge@0.6.0-27766876.4ff7082",
"nuxi": "3.0.0-rc.11",
"ohash": "^0.1.5",
"ohmyfetch": "^0.4.19",
Expand Down
4 changes: 2 additions & 2 deletions packages/nuxt/src/core/runtime/nitro/renderer.ts
Expand Up @@ -5,7 +5,7 @@ import { appendHeader, getQuery, writeEarlyHints } from 'h3'
import devalue from '@nuxt/devalue'
import { joinURL } from 'ufo'
import { renderToString as _renderToString } from 'vue/server-renderer'
import { useRuntimeConfig, useNitroApp, defineRenderHandler, getRouteOptions } from '#internal/nitro'
import { useRuntimeConfig, useNitroApp, defineRenderHandler, getRouteRules } from '#internal/nitro'
// eslint-disable-next-line import/no-restricted-paths
import type { NuxtApp, NuxtSSRContext } from '#app'

Expand Down Expand Up @@ -129,7 +129,7 @@ export default defineRenderHandler(async (event) => {
}

// Get route options (currently to apply `ssr: false`)
const routeOptions = getRouteOptions(event)
const routeOptions = getRouteRules(event)

// Initialize ssr context
const ssrContext: NuxtSSRContext = {
Expand Down
2 changes: 1 addition & 1 deletion packages/schema/package.json
Expand Up @@ -18,7 +18,7 @@
"@types/semver": "^7",
"@vitejs/plugin-vue": "^3.1.2",
"@vueuse/head": "~1.0.0-rc.9",
"nitropack": "npm:nitropack-edge@0.6.0-27766621.5c2c313",
"nitropack": "npm:nitropack-edge@0.6.0-27766876.4ff7082",
"unbuild": "latest",
"vite": "~3.1.8"
},
Expand Down
14 changes: 7 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.