full site update
This commit is contained in:
18
node_modules/astro/dist/prerender/utils.js
generated
vendored
18
node_modules/astro/dist/prerender/utils.js
generated
vendored
@@ -1,17 +1,15 @@
|
||||
import { getOutDirWithinCwd } from "../core/build/common.js";
|
||||
import { isServerLikeOutput } from "../core/util.js";
|
||||
function getPrerenderDefault(config) {
|
||||
return config.output !== "server";
|
||||
}
|
||||
function getOutputDirectory(config) {
|
||||
const ssr = isServerLikeOutput(config);
|
||||
if (ssr) {
|
||||
return config.build.server;
|
||||
} else {
|
||||
return getOutDirWithinCwd(config.outDir);
|
||||
}
|
||||
function getServerOutputDirectory(settings) {
|
||||
return settings.buildOutput === "server" ? settings.config.build.server : getOutDirWithinCwd(settings.config.outDir);
|
||||
}
|
||||
function getClientOutputDirectory(settings) {
|
||||
return settings.buildOutput === "server" ? settings.config.build.client : settings.config.outDir;
|
||||
}
|
||||
export {
|
||||
getOutputDirectory,
|
||||
getPrerenderDefault
|
||||
getClientOutputDirectory,
|
||||
getPrerenderDefault,
|
||||
getServerOutputDirectory
|
||||
};
|
||||
|
Reference in New Issue
Block a user