0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

[ci] format

This commit is contained in:
Florian Lefebvre 2024-12-09 12:30:37 +00:00 committed by astrobot-houston
parent a9373c0c9a
commit 2b53588772
4 changed files with 5 additions and 5 deletions

View file

@ -12,6 +12,7 @@ import {
astroContentImportPlugin,
astroContentVirtualModPlugin,
} from '../content/index.js';
import { createEnvLoader } from '../env/env-loader.js';
import { astroEnv } from '../env/vite-plugin-env.js';
import astroInternationalization from '../i18n/vite-plugin-i18n.js';
import astroPrefetch from '../prefetch/vite-plugin-prefetch.js';
@ -41,7 +42,6 @@ import { vitePluginMiddleware } from './middleware/vite-plugin.js';
import { joinPaths } from './path.js';
import { vitePluginServerIslands } from './server-islands/vite-plugin-server-islands.js';
import { isObject } from './util.js';
import { createEnvLoader } from '../env/env-loader.js';
type CreateViteOptions = {
settings: AstroSettings;

View file

@ -1,6 +1,6 @@
import { fileURLToPath } from 'node:url';
import { loadEnv } from 'vite';
import type { AstroConfig } from '../types/public/index.js';
import { fileURLToPath } from 'node:url';
// Match valid JS variable names (identifiers), which accepts most alphanumeric characters,
// except that the first character cannot be a number.

View file

@ -7,10 +7,10 @@ import {
VIRTUAL_MODULES_IDS,
VIRTUAL_MODULES_IDS_VALUES,
} from './constants.js';
import type { EnvLoader } from './env-loader.js';
import { type InvalidVariable, invalidVariablesToError } from './errors.js';
import type { EnvSchema } from './schema.js';
import { getEnvFieldType, validateEnvVariable } from './validators.js';
import type { EnvLoader } from './env-loader.js';
interface AstroEnvPluginParams {
settings: AstroSettings;

View file

@ -1,8 +1,8 @@
// @ts-check
import { schema } from 'virtual:astro:env/internal';
import {
createInvalidVariablesError,
getEnv as _getEnv,
createInvalidVariablesError,
getEnvFieldType,
setOnSetGetEnv,
validateEnvVariable,
@ -18,7 +18,7 @@ const getEnv = (key) => {
};
export const getSecret = (key) => {
return getEnv(key)
return getEnv(key);
};
const _internalGetSecret = (key) => {