Skip to content

Commit

Permalink
fix: remove @ts-expect-error
Browse files Browse the repository at this point in the history
  • Loading branch information
magne4000 committed Feb 26, 2025
1 parent 1cf6e7f commit 0963c9d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/vike-server/src/runtime/vike-handler.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { IncomingMessage, ServerResponse } from 'node:http'
import compressMiddlewareFactory from '@universal-middleware/compress'
import type { Get, RuntimeAdapter, UniversalHandler, UniversalMiddleware } from '@universal-middleware/core'
import { renderPage as _renderPage, getGlobalContextAsync } from 'vike/server'
import { getGlobalContextAsync, renderPage as _renderPage } from 'vike/server'
import { isVercel } from '../utils/isVercel.js'
import { connectToWeb } from './adapters/connectToWeb.js'
import { globalStore } from './globalStore.js'
Expand Down Expand Up @@ -122,7 +122,6 @@ export const renderPageHandler = ((options?) => async (request, context, runtime
async function removeBaseUrl(req: IncomingMessage) {
if (!req.url) return
const globalContext = await getGlobalContextAsync(!globalStore.isDev)
// @ts-expect-error not released yet
const baseAssets = globalContext.baseAssets as string
// Don't choke on older Vike versions
if (baseAssets === undefined) return
Expand Down

0 comments on commit 0963c9d

Please sign in to comment.