diff --git a/.github/workflows/deployment-e2e.yml b/.github/workflows/deployment-e2e.yml index c867b738a86..813ec022b14 100644 --- a/.github/workflows/deployment-e2e.yml +++ b/.github/workflows/deployment-e2e.yml @@ -9,8 +9,7 @@ jobs: strategy: fail-fast: false matrix: - plan: ['aws-lambda', 'azure-function', 'cloudflare-workers', 'cloudflare-modules', 'deno'] - # TODO: Add vercel + plan: ['aws-lambda', 'azure-function', 'cloudflare-workers', 'cloudflare-modules', 'deno', 'vercel'] name: e2e / ${{ matrix.plan }} runs-on: ubuntu-latest diff --git a/e2e/vercel/scripts/bundle.js b/e2e/vercel/scripts/bundle.js index ec8a66656aa..575f29689f4 100644 --- a/e2e/vercel/scripts/bundle.js +++ b/e2e/vercel/scripts/bundle.js @@ -3,7 +3,7 @@ const { build } = require('esbuild'); async function main() { await build({ entryPoints: ['./src/index.ts'], - outfile: 'pages/api/whatwgnode.js', + outfile: 'pages/api/[...slug].js', format: 'cjs', minify: false, bundle: true, diff --git a/e2e/vercel/scripts/createVercelDeployment.ts b/e2e/vercel/scripts/createVercelDeployment.ts index efe1383f005..a42443f06e9 100644 --- a/e2e/vercel/scripts/createVercelDeployment.ts +++ b/e2e/vercel/scripts/createVercelDeployment.ts @@ -133,16 +133,13 @@ export function createVercelDeployment(): DeploymentConfiguration<{ const deployment = new VercelDeployment('vercel-function', { files: [ { - file: '/api/whatwgnode.js', - data: await fsPromises.readFile( - join(__dirname, '..', 'pages', 'api', 'whatwgnode.js'), - 'utf-8', - ), + file: '/api/[...slug].js', + data: await fsPromises.readFile(join(__dirname, '..', 'pages', 'api', '[...slug].js'), 'utf-8'), }, ], name: `whatwg-node-e2e-testing`, functions: { - 'api/whatwgnode.js': { + 'api/[...slug].js': { memory: 256, maxDuration: 5, },