refactor: use global setting for Vercel Edge runtime

This commit is contained in:
2023-02-15 12:20:58 +01:00
parent 80ff4b2195
commit 51090bb4d9
17 changed files with 4 additions and 50 deletions

View File

@@ -3,9 +3,6 @@ import type { LayoutServerLoad } from './$types'
import { fetchAPI } from '$utils/api'
import { fetchSwell } from '$utils/functions/shopServer'
export const config = {
runtime: 'edge'
}
export const load = (async () => {
try {

View File

@@ -4,9 +4,6 @@ import { fetchAPI } from '$utils/api'
import { getRandomItem } from 'utils/array'
import { fetchSwell } from '$utils/functions/shopServer'
export const config = {
runtime: 'edge'
}
export const load = (async ({ setHeaders }) => {
try {

View File

@@ -3,9 +3,6 @@ import type { PageServerLoad } from './$types'
import { fetchAPI } from '$utils/api'
import { fetchSwell } from '$utils/functions/shopServer'
export const config = {
runtime: 'edge'
}
export const load = (async ({ params, setHeaders }) => {
try {