mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
[ci] format
This commit is contained in:
parent
a9373c0c9a
commit
2b53588772
4 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
|
|
2
packages/astro/src/env/env-loader.ts
vendored
2
packages/astro/src/env/env-loader.ts
vendored
|
@ -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.
|
||||
|
|
2
packages/astro/src/env/vite-plugin-env.ts
vendored
2
packages/astro/src/env/vite-plugin-env.ts
vendored
|
@ -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;
|
||||
|
|
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue