From 45559b1877e5358fe6609b9c5a2f145e20eee6ba Mon Sep 17 00:00:00 2001 From: Rosco Kalis Date: Thu, 12 Dec 2024 15:16:56 +0100 Subject: [PATCH] fix: move logs route back to node.js runtime --- app/api/[chainId]/logs/route.ts | 3 --- cypress/e2e/chains.cy.ts | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/app/api/[chainId]/logs/route.ts b/app/api/[chainId]/logs/route.ts index 75deebdb..10b7cfd2 100644 --- a/app/api/[chainId]/logs/route.ts +++ b/app/api/[chainId]/logs/route.ts @@ -10,9 +10,6 @@ interface Props { }; } -export const runtime = 'edge'; -export const preferredRegion = ['iad1']; - export async function POST(req: NextRequest, { params }: Props) { if (!(await checkActiveSessionEdge(req))) { return new Response(JSON.stringify({ message: 'No API session is active' }), { status: 403 }); diff --git a/cypress/e2e/chains.cy.ts b/cypress/e2e/chains.cy.ts index 064969e9..fe61a355 100644 --- a/cypress/e2e/chains.cy.ts +++ b/cypress/e2e/chains.cy.ts @@ -155,7 +155,7 @@ const TEST_ADDRESSES = { [ChainId.ZkSyncSepoliaTestnet]: '0x46D8e47b9A6487FDAB0a700b269A452cFeED49Aa', } as const; -describe('Chain Support', () => { +describe(`Chain Support (${TEST_URL})`, () => { it('should have a test for every item in the chain selection dropdown menu', () => { cy.visit(`${TEST_URL}/address/0xe126b3E5d052f1F575828f61fEBA4f4f2603652a`, { timeout: 10_000 }); cy.wait(1000); // Since App Router we now need this delay before the page is fully loaded -__-