full site update
This commit is contained in:
3
node_modules/astro/dist/prerender/routing.d.ts
generated
vendored
3
node_modules/astro/dist/prerender/routing.d.ts
generated
vendored
@@ -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;
|
||||
|
9
node_modules/astro/dist/prerender/utils.d.ts
generated
vendored
9
node_modules/astro/dist/prerender/utils.d.ts
generated
vendored
@@ -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;
|
||||
|
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