full site update

This commit is contained in:
2025-07-24 18:46:24 +02:00
parent bfe2b90d8d
commit 37a6e0ab31
6912 changed files with 540482 additions and 361712 deletions

View File

@@ -1,4 +1,5 @@
import type { AstroSettings, ComponentInstance, RouteData } from '../@types/astro.js';
import type { AstroSettings, ComponentInstance } from '../types/astro.js';
import type { RouteData } from '../types/public/internal.js';
import type { DevPipeline } from '../vite-plugin-astro-server/pipeline.js';
type GetSortedPreloadedMatchesParams = {
pipeline: DevPipeline;

View File

@@ -1,6 +1,11 @@
import type { AstroConfig } from '../@types/astro.js';
import type { AstroSettings } from '../types/astro.js';
import type { AstroConfig } from '../types/public/config.js';
export declare function getPrerenderDefault(config: AstroConfig): boolean;
/**
* Returns the correct output directory of the SSR build based on the configuration
*/
export declare function getOutputDirectory(config: AstroConfig): URL;
export declare function getServerOutputDirectory(settings: AstroSettings): URL;
/**
* Returns the correct output directory of the client build based on the configuration
*/
export declare function getClientOutputDirectory(settings: AstroSettings): URL;

View File

@@ -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
};