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
488a21b8
Commit
488a21b8
authored
Mar 31, 2026
by
Jude Gao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[create-next-app] Make vercel.svg viewBox square to eliminate browser warning
parent
c2914790
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
83 additions
and
8 deletions
+83
-8
vercel.svg
...ges/create-next-app/templates/app-tw/js/public/vercel.svg
+1
-1
vercel.svg
...ges/create-next-app/templates/app-tw/ts/public/vercel.svg
+1
-1
vercel.svg
packages/create-next-app/templates/app/js/public/vercel.svg
+1
-1
vercel.svg
packages/create-next-app/templates/app/ts/public/vercel.svg
+1
-1
vercel.svg
...create-next-app/templates/default-tw/js/public/vercel.svg
+1
-1
vercel.svg
...create-next-app/templates/default-tw/ts/public/vercel.svg
+1
-1
vercel.svg
...es/create-next-app/templates/default/js/public/vercel.svg
+1
-1
vercel.svg
...es/create-next-app/templates/default/ts/public/vercel.svg
+1
-1
browser-warnings.test.ts
...ration/create-next-app/templates/browser-warnings.test.ts
+75
-0
No files found.
packages/create-next-app/templates/app-tw/js/public/vercel.svg
View file @
488a21b8
<svg
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
viewBox=
"0 0 1155 1000"
><path
d=
"m577.3 0 577.4 1000H0z"
fill=
"#fff"
/></svg>
<svg
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
viewBox=
"0 0 1155 1155"
><path
d=
"m577.3 77.5 577.4 1000H0z"
fill=
"#fff"
/></svg>
\ No newline at end of file
\ No newline at end of file
packages/create-next-app/templates/app-tw/ts/public/vercel.svg
View file @
488a21b8
<svg
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
viewBox=
"0 0 1155 1000"
><path
d=
"m577.3 0 577.4 1000H0z"
fill=
"#fff"
/></svg>
<svg
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
viewBox=
"0 0 1155 1155"
><path
d=
"m577.3 77.5 577.4 1000H0z"
fill=
"#fff"
/></svg>
\ No newline at end of file
\ No newline at end of file
packages/create-next-app/templates/app/js/public/vercel.svg
View file @
488a21b8
<svg
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
viewBox=
"0 0 1155 1000"
><path
d=
"m577.3 0 577.4 1000H0z"
fill=
"#fff"
/></svg>
<svg
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
viewBox=
"0 0 1155 1155"
><path
d=
"m577.3 77.5 577.4 1000H0z"
fill=
"#fff"
/></svg>
\ No newline at end of file
\ No newline at end of file
packages/create-next-app/templates/app/ts/public/vercel.svg
View file @
488a21b8
<svg
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
viewBox=
"0 0 1155 1000"
><path
d=
"m577.3 0 577.4 1000H0z"
fill=
"#fff"
/></svg>
<svg
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
viewBox=
"0 0 1155 1155"
><path
d=
"m577.3 77.5 577.4 1000H0z"
fill=
"#fff"
/></svg>
\ No newline at end of file
\ No newline at end of file
packages/create-next-app/templates/default-tw/js/public/vercel.svg
View file @
488a21b8
<svg
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
viewBox=
"0 0 1155 1000"
><path
d=
"m577.3 0 577.4 1000H0z"
fill=
"#fff"
/></svg>
<svg
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
viewBox=
"0 0 1155 1155"
><path
d=
"m577.3 77.5 577.4 1000H0z"
fill=
"#fff"
/></svg>
\ No newline at end of file
\ No newline at end of file
packages/create-next-app/templates/default-tw/ts/public/vercel.svg
View file @
488a21b8
<svg
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
viewBox=
"0 0 1155 1000"
><path
d=
"m577.3 0 577.4 1000H0z"
fill=
"#fff"
/></svg>
<svg
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
viewBox=
"0 0 1155 1155"
><path
d=
"m577.3 77.5 577.4 1000H0z"
fill=
"#fff"
/></svg>
\ No newline at end of file
\ No newline at end of file
packages/create-next-app/templates/default/js/public/vercel.svg
View file @
488a21b8
<svg
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
viewBox=
"0 0 1155 1000"
><path
d=
"m577.3 0 577.4 1000H0z"
fill=
"#fff"
/></svg>
<svg
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
viewBox=
"0 0 1155 1155"
><path
d=
"m577.3 77.5 577.4 1000H0z"
fill=
"#fff"
/></svg>
\ No newline at end of file
\ No newline at end of file
packages/create-next-app/templates/default/ts/public/vercel.svg
View file @
488a21b8
<svg
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
viewBox=
"0 0 1155 1000"
><path
d=
"m577.3 0 577.4 1000H0z"
fill=
"#fff"
/></svg>
<svg
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
viewBox=
"0 0 1155 1155"
><path
d=
"m577.3 77.5 577.4 1000H0z"
fill=
"#fff"
/></svg>
\ No newline at end of file
\ No newline at end of file
test/integration/create-next-app/templates/browser-warnings.test.ts
0 → 100644
View file @
488a21b8
import
{
run
,
useTempDir
}
from
'../utils'
import
{
findPort
,
killApp
,
launchApp
,
retry
,
waitFor
}
from
'next-test-utils'
import
webdriver
from
'next-webdriver'
import
{
join
}
from
'path'
describe
(
'create-next-app templates should have no browser warnings'
,
()
=>
{
let
nextTgzFilename
:
string
beforeAll
(()
=>
{
if
(
!
process
.
env
.
NEXT_TEST_PKG_PATHS
)
{
throw
new
Error
(
'This test needs to be run with `node run-tests.js`.'
)
}
const
pkgPaths
=
new
Map
<
string
,
string
>
(
JSON
.
parse
(
process
.
env
.
NEXT_TEST_PKG_PATHS
)
)
nextTgzFilename
=
pkgPaths
.
get
(
'next'
)
!
})
it
(
'should have no browser warnings or errors with --tailwind'
,
async
()
=>
{
await
useTempDir
(
async
(
cwd
)
=>
{
const
projectName
=
'app-tw-no-warnings'
const
{
exitCode
}
=
await
run
(
[
projectName
,
'--ts'
,
'--app'
,
'--eslint'
,
'--no-src-dir'
,
'--tailwind'
,
'--no-import-alias'
,
'--no-react-compiler'
,
'--no-agents-md'
,
...(
process
.
env
.
NEXT_RSPACK
?
[
'--rspack'
]
:
[]),
],
nextTgzFilename
,
{
cwd
}
)
expect
(
exitCode
).
toBe
(
0
)
const
dir
=
join
(
cwd
,
projectName
)
const
port
=
await
findPort
()
const
app
=
await
launchApp
(
dir
,
port
,
{
nextBin
:
join
(
dir
,
'node_modules/next/dist/bin/next'
),
})
try
{
const
browser
=
await
webdriver
(
port
,
'/'
)
await
waitFor
(
2000
)
await
retry
(
async
()
=>
{
const
logs
=
await
browser
.
log
()
const
allMessages
=
logs
.
map
((
log
:
any
)
=>
log
.
message
).
join
(
'
\
n'
)
expect
(
allMessages
.
includes
(
'hydrate callback'
)
||
allMessages
.
includes
(
'already hydrated'
)
).
toBe
(
true
)
const
warnings
=
logs
.
filter
((
log
:
any
)
=>
log
.
source
===
'warning'
)
const
errors
=
logs
.
filter
((
log
:
any
)
=>
log
.
source
===
'error'
)
expect
(
warnings
).
toEqual
([])
expect
(
errors
).
toEqual
([])
})
await
browser
.
close
()
}
finally
{
await
killApp
(
app
)
}
})
})
})
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