Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-lefebvre authored and astrobot-houston committed Dec 9, 2024
1 parent a9373c0 commit 2b53588
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/astro/src/core/create-vite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/src/env/env-loader.ts
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/src/env/vite-plugin-env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions packages/astro/templates/env.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// @ts-check
import { schema } from 'virtual:astro:env/internal';
import {
createInvalidVariablesError,
getEnv as _getEnv,
createInvalidVariablesError,
getEnvFieldType,
setOnSetGetEnv,
validateEnvVariable,
Expand All @@ -18,7 +18,7 @@ const getEnv = (key) => {
};

export const getSecret = (key) => {
return getEnv(key)
return getEnv(key);
};

const _internalGetSecret = (key) => {
Expand Down

0 comments on commit 2b53588

Please sign in to comment.