27 lines
769 B
JavaScript
27 lines
769 B
JavaScript
// @ts-check
|
|
import { defineConfig, envField } from 'astro/config'
|
|
import tailwind from '@astrojs/tailwind'
|
|
|
|
import react from '@astrojs/react'
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
integrations: [tailwind(), react()],
|
|
prefetch: true,
|
|
i18n: {
|
|
locales: ['ru', 'en'],
|
|
defaultLocale: 'ru',
|
|
routing: {
|
|
prefixDefaultLocale: false,
|
|
},
|
|
},
|
|
env: {
|
|
schema: {
|
|
YCLIENTS_API_URL: envField.string({ context: 'server', access: 'public' }),
|
|
YCLIENTS_TOKEN: envField.string({ context: 'server', access: 'secret' }),
|
|
YCLIENTS_ABONEMENTS_API_URL: envField.string({ context: 'server', access: 'public' }),
|
|
YCLIENTS_ABONEMENTS_TOKEN: envField.string({ context: 'server', access: 'secret' }),
|
|
},
|
|
},
|
|
})
|