diff --git a/packages/astro/src/env/schema.ts b/packages/astro/src/env/schema.ts index 7686318d27..4052a1c8e1 100644 --- a/packages/astro/src/env/schema.ts +++ b/packages/astro/src/env/schema.ts @@ -91,10 +91,7 @@ const EnvSchemaKey = z message: 'A valid variable name can only contain uppercase letters, numbers and underscores.', }); -export const EnvSchema = z.record( - EnvSchemaKey, - z.intersection(EnvFieldMetadata, EnvFieldType) -); +export const EnvSchema = z.record(EnvSchemaKey, z.intersection(EnvFieldMetadata, EnvFieldType)); // https://www.totaltypescript.com/concepts/the-prettify-helper type Prettify = { diff --git a/packages/astro/test/units/config/config-validate.test.js b/packages/astro/test/units/config/config-validate.test.js index 334f19aa5c..4e4ba1e7a2 100644 --- a/packages/astro/test/units/config/config-validate.test.js +++ b/packages/astro/test/units/config/config-validate.test.js @@ -3,8 +3,8 @@ import { describe, it } from 'node:test'; import stripAnsi from 'strip-ansi'; import { z } from 'zod'; import { validateConfig } from '../../../dist/core/config/validate.js'; -import { envField } from '../../../dist/env/config.js'; import { formatConfigErrorMessage } from '../../../dist/core/messages.js'; +import { envField } from '../../../dist/env/config.js'; describe('Config Validation', () => { it('empty user config is valid', async () => { @@ -392,7 +392,7 @@ describe('Config Validation', () => { experimental: { env: { schema: { - "123ABC": envField.string({ access: 'public', context: 'server' }), + '123ABC': envField.string({ access: 'public', context: 'server' }), }, }, },