fix(nitro): export named function rather than default export (#490)

This commit is contained in:
Daniel Roe 2021-09-06 12:37:21 +01:00 committed by GitHub
parent b1da8ea2ca
commit 0a8c86c885
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
import '#polyfill'
import { localCall } from '../server'
export default async function handle (context, req) {
export async function handle (context, req) {
const url = '/' + (req.params.url || '')
const { body, status, statusText, headers } = await localCall({