Refactor routing in App component to enhance navigation and improve error handling by integrating dynamic routes and updating the NotFound route.
This commit is contained in:
17
node_modules/astro/dist/prerender/utils.js
generated
vendored
Normal file
17
node_modules/astro/dist/prerender/utils.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
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
|
||||
};
|
Reference in New Issue
Block a user