feat: run server functions on edge
This commit is contained in:
@@ -2,6 +2,9 @@ import { error } from '@sveltejs/kit'
|
||||
import type { RequestHandler } from './$types'
|
||||
import { fetchAPI } from '$utils/api'
|
||||
|
||||
export const config = {
|
||||
runtime: 'edge'
|
||||
}
|
||||
|
||||
export const GET = (async ({ url, setHeaders }) => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user