astro-ghostcms/.pnpm-store/v3/files/4b/0fcbe32559b6c26f6a21a1fef22...

21 lines
513 B
Plaintext

import { getOutDirWithinCwd } from "../core/build/common.js";
function isServerLikeOutput(config) {
return config.output === "server" || config.output === "hybrid";
}
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);
}
}
export {
getOutputDirectory,
getPrerenderDefault,
isServerLikeOutput
};