Skip to content

Commit

Permalink
Remove --experimental-test-proxy from the cli, update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
agadzik committed Mar 21, 2024
1 parent ac9a994 commit ef14e36
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 0 additions & 2 deletions packages/next/src/bin/next.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ program
'--experimental-upload-trace, <traceUrl>',
'Reports a subset of the debugging trace to a remote HTTP URL. Includes sensitive data.'
)
.addOption(new Option('--experimental-test-proxy').hideHelp())
.action((directory, options, { _optionValueSources }) => {
const portSource = _optionValueSources.port
import('../cli/next-dev.js').then((mod) =>
Expand Down Expand Up @@ -313,7 +312,6 @@ program
'Specify the maximum amount of milliseconds to wait before closing inactive connections.'
).argParser(myParseInt)
)
.addOption(new Option('--experimental-test-proxy').hideHelp())
.action((directory, options) =>
import('../cli/next-start.js').then((mod) =>
mod.nextStart(options, directory)
Expand Down
12 changes: 11 additions & 1 deletion packages/next/src/experimental/testmode/playwright/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@

You have a Next.js project.

### Update `next.config.js`

```javascript
module.exports = {
experimental: {
testProxy: true,
},
}
```

### Install `@playwright/test` in your project

```sh
Expand All @@ -25,7 +35,7 @@ import { defineConfig } from 'next/experimental/testmode/playwright'

export default defineConfig({
webServer: {
command: 'npm dev -- --experimental-test-proxy',
command: 'npm dev',
url: 'http://localhost:3000',
},
})
Expand Down

0 comments on commit ef14e36

Please sign in to comment.