mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
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 <[email protected]> Co-authored-by: JJ Kasper <[email protected]>
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')
|
|
})
|
|
})
|