message: [next] allow to declare edge functions outside of /api/ in Next.js
diff: @@ -78,7 +78,6 @@ import {
  updateRouteSrc,
  validateEntrypoint,
  } from './utils';
  -import assert from 'assert';
  export const version = 2;
  export const htmlContentType = 'text/html; charset=utf-8';
  @@ -2613,15 +2612,6 @@ async function getServerlessPages(params: {
  for (const edgeFunctionFile of Object.keys(
  middlewareManifest?.functions ?? {}
  )) {
  - // `getStaticProps` are expecting `Prerender` output which is a Serverless function
  - // and not an Edge Function. Therefore we only remove API endpoints for now, as they
  - // don't have `getStaticProps`.
  - //
  - // Context: https://github.com/vercel/vercel/pull/7905#discussion_r890213165
  - assert(
  - edgeFunctionFile.startsWith('/api/'),
  - `Only API endpoints are currently supported for Edge endpoints.`
  - );
  delete pages[edgeFunctionFile.slice(1) + '.js'];
  }
  