mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
074262baf3
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>
13 lines
342 B
TypeScript
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')
|
|
})
|
|
})
|