site: turn off edge serving for REPL (#9136)

Our core web vitals have really taken a hit since enabling edge serving. I ran various configs against pagespeed.web.dev and the traditional serverless functions do the best. That's at least partially because I believe serverless functions default to running in us-east-1 where our supabase instance is located. Therefore try going back to Serverless for a while to see the impact.
pull/9139/head
Ben McCann 1 year ago committed by GitHub
parent 3d3680cd11
commit d6f0981452
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,9 +2,7 @@ import * as session from '$lib/db/session';
/** @type {import('@sveltejs/adapter-vercel').Config} */ /** @type {import('@sveltejs/adapter-vercel').Config} */
export const config = { export const config = {
// regions: ['pdx1', 'sfo1', 'cle1', 'iad1'], runtime: 'nodejs18.x' // see https://github.com/sveltejs/svelte/pull/9136
regions: 'all',
runtime: 'edge'
}; };
export async function load({ request }) { export async function load({ request }) {

Loading…
Cancel
Save