Files
ry.kazcloud.dev/node_modules/astro/dist/prerender/utils.js
Ryan Kazokas d181f77fb2
All checks were successful
Build and Push / build (push) Successful in 55s
Updates dockerfile
2026-02-16 15:09:37 -05:00

18 lines
438 B
JavaScript

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);
}
}
export {
getOutputDirectory,
getPrerenderDefault
};