Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
24
node_modules/next/dist/export/utils.js
generated
vendored
Normal file
24
node_modules/next/dist/export/utils.js
generated
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "hasCustomExportOutput", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return hasCustomExportOutput;
|
||||
}
|
||||
});
|
||||
function hasCustomExportOutput(config) {
|
||||
// In the past, a user had to run "next build" to generate
|
||||
// ".next" (or whatever the distDir) followed by "next export"
|
||||
// to generate "out" (or whatever the outDir). However, when
|
||||
// "output: export" is configured, "next build" does both steps.
|
||||
// So the user-configured distDir is actually the outDir.
|
||||
// We'll do some custom logic when meeting this condition.
|
||||
// e.g.
|
||||
// Will set config.distDir to .next to make sure the manifests
|
||||
// are still reading from temporary .next directory.
|
||||
return config.output === 'export' && config.distDir !== '.next';
|
||||
}
|
||||
|
||||
//# sourceMappingURL=utils.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue