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
799bb425
Commit
799bb425
authored
Jan 27, 2020
by
Stig Kleppe-Jørgensen
Committed by
Tim Neutkens
Jan 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved wording in comment (#10277)
parent
7e6e25de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
config.ts
packages/next/next-server/server/config.ts
+1
-1
No files found.
packages/next/next-server/server/config.ts
View file @
799bb425
...
@@ -97,7 +97,7 @@ function assignDefaults(userConfig: { [key: string]: any }) {
...
@@ -97,7 +97,7 @@ function assignDefaults(userConfig: { [key: string]: any }) {
`The 'public' directory is reserved in Next.js and can not be set as the 'distDir'. https://err.sh/zeit/next.js/can-not-output-to-public`
`The 'public' directory is reserved in Next.js and can not be set as the 'distDir'. https://err.sh/zeit/next.js/can-not-output-to-public`
)
)
}
}
// make sure distDir isn't an empty string
which can result
the provided
// make sure distDir isn't an empty string
as it can result in
the provided
// directory being deleted in development mode
// directory being deleted in development mode
if
(
userDistDir
.
length
===
0
)
{
if
(
userDistDir
.
length
===
0
)
{
throw
new
Error
(
throw
new
Error
(
...
...
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