diff --git a/packages/astro/src/env/vite-plugin-env.ts b/packages/astro/src/env/vite-plugin-env.ts index a922a92123..9aae2cf94c 100644 --- a/packages/astro/src/env/vite-plugin-env.ts +++ b/packages/astro/src/env/vite-plugin-env.ts @@ -8,9 +8,9 @@ import { VIRTUAL_MODULES_IDS, VIRTUAL_MODULES_IDS_VALUES, } from './constants.js'; +import { type InvalidVariable, invalidVariablesToError } from './errors.js'; import type { EnvSchema } from './schema.js'; import { getEnvFieldType, validateEnvVariable } from './validators.js'; -import { invalidVariablesToError, type InvalidVariable } from './errors.js'; // TODO: reminders for when astro:env comes out of experimental // Types should always be generated (like in types/content.d.ts). That means the client module will be empty diff --git a/packages/astro/templates/env/module.mjs b/packages/astro/templates/env/module.mjs index 08c0a0a7a5..0e2dd89eb5 100644 --- a/packages/astro/templates/env/module.mjs +++ b/packages/astro/templates/env/module.mjs @@ -3,9 +3,9 @@ import { schema } from 'virtual:astro:env/internal'; import { createInvalidVariablesError, getEnv, + getEnvFieldType, setOnSetGetEnv, validateEnvVariable, - getEnvFieldType, } from 'astro/env/runtime'; export const getSecret = (key) => {