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 { AstroRenderer, SSRLoadedRenderer } from '../@types/astro.js';
import type { AstroRenderer } from '../types/public/integrations.js';
import type { SSRLoadedRenderer } from '../types/public/internal.js';
/**
* Use this function to provide renderers to the `AstroContainer`:
*

View File

@@ -1,7 +1,7 @@
async function loadRenderers(renderers) {
const loadedRenderers = await Promise.all(
renderers.map(async (renderer) => {
const mod = await import(renderer.serverEntrypoint);
const mod = await import(renderer.serverEntrypoint.toString());
if (typeof mod.default !== "undefined") {
return {
...renderer,

View File

@@ -1,6 +1,8 @@
import type { APIContext, AstroConfig, MiddlewareHandler, ValidRedirectStatus } from '../@types/astro.js';
import * as I18nInternals from '../i18n/index.js';
import type { RedirectToFallback } from '../i18n/index.js';
import * as I18nInternals from '../i18n/index.js';
import type { MiddlewareHandler } from '../types/public/common.js';
import type { AstroConfig, ValidRedirectStatus } from '../types/public/config.js';
import type { APIContext } from '../types/public/context.js';
export { normalizeTheLocale, toCodes, toPaths } from '../i18n/index.js';
export type GetLocaleOptions = I18nInternals.GetLocaleOptions;
/**

View File

@@ -131,10 +131,10 @@ if (i18n?.routing === "manual") {
fallbackType = toFallbackType(customOptions);
const manifest = {
...i18n,
fallback: void 0,
strategy,
domainLookupTable: {},
fallbackType
fallbackType,
fallback: i18n.fallback
};
return I18nInternals.createMiddleware(manifest, base, trailingSlash, format);
};

View File

@@ -0,0 +1,12 @@
export * as z from 'zod';
export { defineLiveCollection } from '../content/config.js';
export declare const getCollection: () => never;
export declare const render: () => never;
export declare const getEntry: () => never;
export declare const getEntryBySlug: () => never;
export declare const getDataEntryById: () => never;
export declare const getEntries: () => never;
export declare const reference: () => never;
export declare const getLiveCollection: () => never;
export declare const getLiveEntry: () => never;
export declare const defineCollection: () => never;

37
node_modules/astro/dist/virtual-modules/live-config.js generated vendored Normal file
View File

@@ -0,0 +1,37 @@
import * as z from "zod";
import { defineLiveCollection } from "../content/config.js";
function createErrorFunction(message) {
return () => {
const error = new Error(`The ${message}() function is not available in live config files.`);
const stackLines = error.stack?.split("\n");
if (stackLines && stackLines.length > 1) {
stackLines.splice(1, 1);
error.stack = stackLines.join("\n");
}
throw error;
};
}
const getCollection = createErrorFunction("getCollection");
const render = createErrorFunction("render");
const getEntry = createErrorFunction("getEntry");
const getEntryBySlug = createErrorFunction("getEntryBySlug");
const getDataEntryById = createErrorFunction("getDataEntryById");
const getEntries = createErrorFunction("getEntries");
const reference = createErrorFunction("reference");
const getLiveCollection = createErrorFunction("getLiveCollection");
const getLiveEntry = createErrorFunction("getLiveEntry");
const defineCollection = createErrorFunction("defineCollection");
export {
defineCollection,
defineLiveCollection,
getCollection,
getDataEntryById,
getEntries,
getEntry,
getEntryBySlug,
getLiveCollection,
getLiveEntry,
reference,
render,
z
};