Revamping to matrix style

This commit is contained in:
2026-02-16 16:37:35 -05:00
parent 71852ec99a
commit 9d0e3938e4
14958 changed files with 2089572 additions and 114 deletions

6
node_modules/astro/dist/cli/create-key/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,6 @@
import { type Flags } from '../flags.js';
interface CreateKeyOptions {
flags: Flags;
}
export declare function createKey({ flags }: CreateKeyOptions): Promise<0 | 1>;
export {};

27
node_modules/astro/dist/cli/create-key/index.js generated vendored Normal file
View File

@@ -0,0 +1,27 @@
import { createNodeLogger } from "../../core/config/logging.js";
import { createKey as createCryptoKey, encodeKey } from "../../core/encryption.js";
import { flagsToAstroInlineConfig } from "../flags.js";
async function createKey({ flags }) {
try {
const inlineConfig = flagsToAstroInlineConfig(flags);
const logger = createNodeLogger(inlineConfig);
const keyPromise = createCryptoKey();
const key = await keyPromise;
const encoded = await encodeKey(key);
logger.info(
"crypto",
`Generated a key to encrypt props passed to Server islands. To reuse the same key across builds, set this value as ASTRO_KEY in an environment variable on your build server.
ASTRO_KEY=${encoded}`
);
} catch (err) {
if (err != null) {
console.error(err.toString());
}
return 1;
}
return 0;
}
export {
createKey
};