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
2704387d
Unverified
Commit
2704387d
authored
Apr 08, 2020
by
Joe Haddad
Committed by
GitHub
Apr 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add New Provider (#11757)
parent
21be4c05
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
index.ts
packages/next/build/index.ts
+6
-6
ci-info.ts
packages/next/telemetry/ci-info.ts
+6
-2
No files found.
packages/next/build/index.ts
View file @
2704387d
import
chalk
from
'next/dist/compiled/chalk'
import
ciEnvironment
from
'next/dist/compiled/ci-info'
import
crypto
from
'crypto'
import
crypto
from
'crypto'
import
fs
from
'fs'
import
Worker
from
'jest-worker'
import
chalk
from
'next/dist/compiled/chalk'
import
devalue
from
'next/dist/compiled/devalue'
import
devalue
from
'next/dist/compiled/devalue'
import
escapeStringRegexp
from
'next/dist/compiled/escape-string-regexp'
import
escapeStringRegexp
from
'next/dist/compiled/escape-string-regexp'
import
findUp
from
'next/dist/compiled/find-up'
import
findUp
from
'next/dist/compiled/find-up'
import
fs
from
'fs'
import
Worker
from
'jest-worker'
import
nanoid
from
'next/dist/compiled/nanoid/index.js'
import
nanoid
from
'next/dist/compiled/nanoid/index.js'
import
path
from
'path'
import
{
pathToRegexp
}
from
'next/dist/compiled/path-to-regexp'
import
{
pathToRegexp
}
from
'next/dist/compiled/path-to-regexp'
import
path
from
'path'
import
{
promisify
}
from
'util'
import
{
promisify
}
from
'util'
import
formatWebpackMessages
from
'../client/dev/error-overlay/format-webpack-messages'
import
formatWebpackMessages
from
'../client/dev/error-overlay/format-webpack-messages'
import
checkCustomRoutes
,
{
import
checkCustomRoutes
,
{
...
@@ -23,6 +22,7 @@ import {
...
@@ -23,6 +22,7 @@ import {
PUBLIC_DIR_MIDDLEWARE_CONFLICT
,
PUBLIC_DIR_MIDDLEWARE_CONFLICT
,
}
from
'../lib/constants'
}
from
'../lib/constants'
import
{
findPagesDir
}
from
'../lib/find-pages-dir'
import
{
findPagesDir
}
from
'../lib/find-pages-dir'
import
{
loadEnvConfig
}
from
'../lib/load-env-config'
import
{
recursiveDelete
}
from
'../lib/recursive-delete'
import
{
recursiveDelete
}
from
'../lib/recursive-delete'
import
{
recursiveReadDir
}
from
'../lib/recursive-readdir'
import
{
recursiveReadDir
}
from
'../lib/recursive-readdir'
import
{
verifyTypeScriptSetup
}
from
'../lib/verifyTypeScriptSetup'
import
{
verifyTypeScriptSetup
}
from
'../lib/verifyTypeScriptSetup'
...
@@ -48,6 +48,7 @@ import loadConfig, {
...
@@ -48,6 +48,7 @@ import loadConfig, {
isTargetLikeServerless
,
isTargetLikeServerless
,
}
from
'../next-server/server/config'
}
from
'../next-server/server/config'
import
{
normalizePagePath
}
from
'../next-server/server/normalize-page-path'
import
{
normalizePagePath
}
from
'../next-server/server/normalize-page-path'
import
*
as
ciEnvironment
from
'../telemetry/ci-info'
import
{
import
{
eventBuildCompleted
,
eventBuildCompleted
,
eventBuildOptimize
,
eventBuildOptimize
,
...
@@ -71,7 +72,6 @@ import {
...
@@ -71,7 +72,6 @@ import {
}
from
'./utils'
}
from
'./utils'
import
getBaseWebpackConfig
from
'./webpack-config'
import
getBaseWebpackConfig
from
'./webpack-config'
import
{
writeBuildId
}
from
'./write-build-id'
import
{
writeBuildId
}
from
'./write-build-id'
import
{
loadEnvConfig
}
from
'../lib/load-env-config'
const
fsAccess
=
promisify
(
fs
.
access
)
const
fsAccess
=
promisify
(
fs
.
access
)
const
fsUnlink
=
promisify
(
fs
.
unlink
)
const
fsUnlink
=
promisify
(
fs
.
unlink
)
...
...
packages/next/telemetry/ci-info.ts
View file @
2704387d
...
@@ -4,5 +4,9 @@ const { isCI: _isCI, name: _name } = ciEnvironment
...
@@ -4,5 +4,9 @@ const { isCI: _isCI, name: _name } = ciEnvironment
const
isZeitNow
=
!!
process
.
env
.
NOW_BUILDER
const
isZeitNow
=
!!
process
.
env
.
NOW_BUILDER
export
const
isCI
=
isZeitNow
||
_isCI
const
envStack
=
process
.
env
.
STACK
export
const
name
=
isZeitNow
?
'ZEIT Now'
:
_name
const
isHeroku
=
typeof
envStack
===
'string'
&&
envStack
.
toLowerCase
().
includes
(
'heroku'
)
export
const
isCI
=
isZeitNow
||
isHeroku
||
_isCI
export
const
name
=
isZeitNow
?
'ZEIT Now'
:
isHeroku
?
'Heroku'
:
_name
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