получаю сервисы из yclients

This commit is contained in:
Yuu Ottosoka
2025-06-10 14:32:39 +03:00
parent 8359ab14ea
commit fadb188200
10 changed files with 157 additions and 124 deletions

View File

@@ -1,5 +1,5 @@
// @ts-check
import { defineConfig } from 'astro/config'
import { defineConfig, envField } from 'astro/config'
import tailwind from '@astrojs/tailwind'
import react from '@astrojs/react'
@@ -15,4 +15,12 @@ export default defineConfig({
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' }),
},
},
})