Full Toolkit for Next-Level Domain Analysis
Document why resolve routes must stay on the edge runtime ππ (#103)
Felix Wotschofskyffa6a3a7dac1
diff --git a/app/api/internal/resolve/arn/route.ts b/app/api/internal/resolve/arn/route.tsindex 92da31f..1e4b436 100644--- a/app/api/internal/resolve/arn/route.ts+++ b/app/api/internal/resolve/arn/route.ts@@ -1,5 +1,9 @@import { handler } from '../base';+// Do not remove: Vercel only honours `preferredRegion` for functions on the edge+// runtime. Without it this route falls back to the project's default region and+// silently stops resolving DNS from the location its path name promises.+// https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config/preferredRegionexport const runtime = 'edge';export const preferredRegion = 'arn1';diff --git a/app/api/internal/resolve/bom/route.ts b/app/api/internal/resolve/bom/route.tsindex 0bd846d..45d64f5 100644--- a/app/api/internal/resolve/bom/route.ts+++ b/app/api/internal/resolve/bom/route.ts@@ -1,5 +1,9 @@import { handler } from '../base';+// Do not remove: Vercel only honours `preferredRegion` for functions on the edge+// runtime. Without it this route falls back to the project's default region and+// silently stops resolving DNS from the location its path name promises.+// https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config/preferredRegionexport const runtime = 'edge';export const preferredRegion = 'bom1';diff --git a/app/api/internal/resolve/cdg/route.ts b/app/api/internal/resolve/cdg/route.tsindex 61dbcef..7d56727 100644--- a/app/api/internal/resolve/cdg/route.ts+++ b/app/api/internal/resolve/cdg/route.ts@@ -1,5 +1,9 @@import { handler } from '../base';+// Do not remove: Vercel only honours `preferredRegion` for functions on the edge+// runtime. Without it this route falls back to the project's default region and+// silently stops resolving DNS from the location its path name promises.+// https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config/preferredRegionexport const runtime = 'edge';export const preferredRegion = 'cdg1';diff --git a/app/api/internal/resolve/cle/route.ts b/app/api/internal/resolve/cle/route.tsindex cdd99a6..13fc936 100644--- a/app/api/internal/resolve/cle/route.ts+++ b/app/api/internal/resolve/cle/route.ts@@ -1,5 +1,9 @@import { handler } from '../base';+// Do not remove: Vercel only honours `preferredRegion` for functions on the edge+// runtime. Without it this route falls back to the project's default region and+// silently stops resolving DNS from the location its path name promises.+// https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config/preferredRegionexport const runtime = 'edge';export const preferredRegion = 'cle1';diff --git a/app/api/internal/resolve/cpt/route.ts b/app/api/internal/resolve/cpt/route.tsindex 868e96f..b9709a1 100644--- a/app/api/internal/resolve/cpt/route.ts+++ b/app/api/internal/resolve/cpt/route.ts@@ -1,5 +1,9 @@import { handler } from '../base';+// Do not remove: Vercel only honours `preferredRegion` for functions on the edge+// runtime. Without it this route falls back to the project's default region and+// silently stops resolving DNS from the location its path name promises.+// https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config/preferredRegionexport const runtime = 'edge';export const preferredRegion = 'cpt1';diff --git a/app/api/internal/resolve/dub/route.ts b/app/api/internal/resolve/dub/route.tsindex d1fdc79..fac61e8 100644--- a/app/api/internal/resolve/dub/route.ts+++ b/app/api/internal/resolve/dub/route.ts@@ -1,5 +1,9 @@import { handler } from '../base';+// Do not remove: Vercel only honours `preferredRegion` for functions on the edge+// runtime. Without it this route falls back to the project's default region and+// silently stops resolving DNS from the location its path name promises.+// https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config/preferredRegionexport const runtime = 'edge';export const preferredRegion = 'dub1';diff --git a/app/api/internal/resolve/fra/route.ts b/app/api/internal/resolve/fra/route.tsindex bed1e75..47d8030 100644--- a/app/api/internal/resolve/fra/route.ts+++ b/app/api/internal/resolve/fra/route.ts@@ -1,5 +1,9 @@import { handler } from '../base';+// Do not remove: Vercel only honours `preferredRegion` for functions on the edge+// runtime. Without it this route falls back to the project's default region and+// silently stops resolving DNS from the location its path name promises.+// https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config/preferredRegionexport const runtime = 'edge';export const preferredRegion = 'fra1';diff --git a/app/api/internal/resolve/gru/route.ts b/app/api/internal/resolve/gru/route.tsindex 5df2c5f..fb96be5 100644--- a/app/api/internal/resolve/gru/route.ts+++ b/app/api/internal/resolve/gru/route.ts@@ -1,5 +1,9 @@import { handler } from '../base';+// Do not remove: Vercel only honours `preferredRegion` for functions on the edge+// runtime. Without it this route falls back to the project's default region and+// silently stops resolving DNS from the location its path name promises.+// https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config/preferredRegionexport const runtime = 'edge';export const preferredRegion = 'gru1';diff --git a/app/api/internal/resolve/hkg/route.ts b/app/api/internal/resolve/hkg/route.tsindex 8df4bca..ce83a2d 100644--- a/app/api/internal/resolve/hkg/route.ts+++ b/app/api/internal/resolve/hkg/route.ts@@ -1,5 +1,9 @@import { handler } from '../base';+// Do not remove: Vercel only honours `preferredRegion` for functions on the edge+// runtime. Without it this route falls back to the project's default region and+// silently stops resolving DNS from the location its path name promises.+// https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config/preferredRegionexport const runtime = 'edge';export const preferredRegion = 'hkg1';diff --git a/app/api/internal/resolve/hnd/route.ts b/app/api/internal/resolve/hnd/route.tsindex 0fdd937..cddf41a 100644--- a/app/api/internal/resolve/hnd/route.ts+++ b/app/api/internal/resolve/hnd/route.ts@@ -1,5 +1,9 @@import { handler } from '../base';+// Do not remove: Vercel only honours `preferredRegion` for functions on the edge+// runtime. Without it this route falls back to the project's default region and+// silently stops resolving DNS from the location its path name promises.+// https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config/preferredRegionexport const runtime = 'edge';export const preferredRegion = 'hnd1';diff --git a/app/api/internal/resolve/iad/route.ts b/app/api/internal/resolve/iad/route.tsindex 0541361..faa573d 100644--- a/app/api/internal/resolve/iad/route.ts+++ b/app/api/internal/resolve/iad/route.ts@@ -1,5 +1,9 @@import { handler } from '../base';+// Do not remove: Vercel only honours `preferredRegion` for functions on the edge+// runtime. Without it this route falls back to the project's default region and+// silently stops resolving DNS from the location its path name promises.+// https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config/preferredRegionexport const runtime = 'edge';export const preferredRegion = 'iad1';diff --git a/app/api/internal/resolve/icn/route.ts b/app/api/internal/resolve/icn/route.tsindex a5b2853..b47b41c 100644--- a/app/api/internal/resolve/icn/route.ts+++ b/app/api/internal/resolve/icn/route.ts@@ -1,5 +1,9 @@import { handler } from '../base';+// Do not remove: Vercel only honours `preferredRegion` for functions on the edge+// runtime. Without it this route falls back to the project's default region and+// silently stops resolving DNS from the location its path name promises.+// https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config/preferredRegionexport const runtime = 'edge';export const preferredRegion = 'icn1';diff --git a/app/api/internal/resolve/kix/route.ts b/app/api/internal/resolve/kix/route.tsindex ddbf9be..a71188b 100644--- a/app/api/internal/resolve/kix/route.ts+++ b/app/api/internal/resolve/kix/route.ts@@ -1,5 +1,9 @@import { handler } from '../base';+// Do not remove: Vercel only honours `preferredRegion` for functions on the edge+// runtime. Without it this route falls back to the project's default region and+// silently stops resolving DNS from the location its path name promises.+// https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config/preferredRegionexport const runtime = 'edge';export const preferredRegion = 'kix1';diff --git a/app/api/internal/resolve/lhr/route.ts b/app/api/internal/resolve/lhr/route.tsindex 090024a..ef92646 100644--- a/app/api/internal/resolve/lhr/route.ts+++ b/app/api/internal/resolve/lhr/route.ts@@ -1,5 +1,9 @@import { handler } from '../base';+// Do not remove: Vercel only honours `preferredRegion` for functions on the edge+// runtime. Without it this route falls back to the project's default region and+// silently stops resolving DNS from the location its path name promises.+// https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config/preferredRegionexport const runtime = 'edge';export const preferredRegion = 'lhr1';diff --git a/app/api/internal/resolve/pdx/route.ts b/app/api/internal/resolve/pdx/route.tsindex a9f2d85..b46b2b7 100644--- a/app/api/internal/resolve/pdx/route.ts+++ b/app/api/internal/resolve/pdx/route.ts@@ -1,5 +1,9 @@import { handler } from '../base';+// Do not remove: Vercel only honours `preferredRegion` for functions on the edge+// runtime. Without it this route falls back to the project's default region and+// silently stops resolving DNS from the location its path name promises.+// https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config/preferredRegionexport const runtime = 'edge';export const preferredRegion = 'pdx1';diff --git a/app/api/internal/resolve/sfo/route.ts b/app/api/internal/resolve/sfo/route.tsindex ab4b99a..f54dfdf 100644--- a/app/api/internal/resolve/sfo/route.ts+++ b/app/api/internal/resolve/sfo/route.ts@@ -1,5 +1,9 @@import { handler } from '../base';+// Do not remove: Vercel only honours `preferredRegion` for functions on the edge+// runtime. Without it this route falls back to the project's default region and+// silently stops resolving DNS from the location its path name promises.+// https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config/preferredRegionexport const runtime = 'edge';export const preferredRegion = 'sfo1';diff --git a/app/api/internal/resolve/sin/route.ts b/app/api/internal/resolve/sin/route.tsindex 469ffbf..0fc0d68 100644--- a/app/api/internal/resolve/sin/route.ts+++ b/app/api/internal/resolve/sin/route.ts@@ -1,5 +1,9 @@import { handler } from '../base';+// Do not remove: Vercel only honours `preferredRegion` for functions on the edge+// runtime. Without it this route falls back to the project's default region and+// silently stops resolving DNS from the location its path name promises.+// https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config/preferredRegionexport const runtime = 'edge';export const preferredRegion = 'sin1';diff --git a/app/api/internal/resolve/syd/route.ts b/app/api/internal/resolve/syd/route.tsindex 5bdf228..53815b6 100644--- a/app/api/internal/resolve/syd/route.ts+++ b/app/api/internal/resolve/syd/route.ts@@ -1,5 +1,9 @@import { handler } from '../base';+// Do not remove: Vercel only honours `preferredRegion` for functions on the edge+// runtime. Without it this route falls back to the project's default region and+// silently stops resolving DNS from the location its path name promises.+// https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config/preferredRegionexport const runtime = 'edge';export const preferredRegion = 'syd1';