Files
vercel__next.js/test/e2e/app-dir/proxy-runtime-nodejs/proxy-runtime-nodejs.test.ts
Niklas Mischkulnig 074262baf3 Only allow node runtime in proxy (#85139)
This PR is the initiative of deprecating the edge runtime. Proxy will
default to Node.js runtime, and will not allow runtime config. If the
users want to use the edge runtime, they should stay on the Middleware,
though we recommend starting the migration.

---------

Co-authored-by: devjiwonchoi <devjiwonchoi@gmail.com>
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2025-10-21 16:06:11 -07:00

13 lines
342 B
TypeScript

import { nextTestSetup } from 'e2e-utils'
describe('proxy-runtime-nodejs', () => {
const { next } = nextTestSetup({
files: __dirname,
})
it('should use nodejs runtime for proxy by default', async () => {
const browser = await next.browser('/foo')
expect(await browser.elementByCss('p').text()).toBe('hello world')
})
})