Skip to content

Commit d6f0981

Browse files
authored
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.
1 parent 3d3680c commit d6f0981

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sites/svelte.dev/src/routes/(authed)/+layout.server.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ import * as session from '$lib/db/session';
22

33
/** @type {import('@sveltejs/adapter-vercel').Config} */
44
export const config = {
5-
// regions: ['pdx1', 'sfo1', 'cle1', 'iad1'],
6-
regions: 'all',
7-
runtime: 'edge'
5+
runtime: 'nodejs18.x' // see https://github.com/sveltejs/svelte/pull/9136
86
};
97

108
export async function load({ request }) {

0 commit comments

Comments
 (0)