Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
6781a525
Unverified
Commit
6781a525
authored
Jun 26, 2022
by
JJ Kasper
Committed by
GitHub
Jun 26, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix invalid warning for existing experimental flag (#38027)
parent
02b9e8bd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
config-shared.ts
packages/next/server/config-shared.ts
+1
-0
index.test.ts
test/e2e/manual-client-base-path/index.test.ts
+6
-1
No files found.
packages/next/server/config-shared.ts
View file @
6781a525
...
...
@@ -510,6 +510,7 @@ export const defaultConfig: NextConfig = {
swcMinify
:
false
,
output
:
!!
process
.
env
.
NEXT_PRIVATE_STANDALONE
?
'standalone'
:
undefined
,
experimental
:
{
manualClientBasePath
:
false
,
// TODO: change default in next major release (current v12.1.5)
legacyBrowsers
:
true
,
browsersListForSwc
:
false
,
...
...
test/e2e/manual-client-base-path/index.test.ts
View file @
6781a525
...
...
@@ -5,7 +5,7 @@ import { join } from 'path'
import
http
from
'http'
import
webdriver
from
'next-webdriver'
import
assert
from
'assert'
import
{
check
,
waitFor
}
from
'next-test-utils'
import
{
check
,
renderViaHTTP
,
waitFor
}
from
'next-test-utils'
describe
(
'manual-client-base-path'
,
()
=>
{
if
((
global
as
any
).
isNextDeploy
)
{
...
...
@@ -98,6 +98,11 @@ describe('manual-client-base-path', () => {
}
})
it
(
'should not warn for flag in output'
,
async
()
=>
{
await
renderViaHTTP
(
next
.
url
,
'/'
)
expect
(
next
.
cliOutput
).
not
.
toContain
(
'exist in this version of Next.js'
)
})
for
(
const
[
asPath
,
pathname
,
query
]
of
[
[
'/'
],
[
'/another'
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment