-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
33 lines (30 loc) · 1.04 KB
/
astro.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import node from '@astrojs/node';
import { defineConfig, envField, squooshImageService } from 'astro/config';
import preact from '@astrojs/preact';
import global from 'astro-global';
// https://astro.build/config
export default defineConfig({
output: 'server',
adapter: node({
mode: 'standalone',
}),
integrations: [preact(), global()],
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
image: {
service: squooshImageService(),
},
experimental: {
env: {
schema: {
ANDROID_RUNNER_API_URL: envField.string({ context: 'server', access: 'public' }),
ANDROID_RUNNER_TOKEN: envField.string({ context: 'server', access: 'secret' }),
IOS_RUNNER_API_URL: envField.string({ context: 'server', access: 'public' }),
IOS_RUNNER_TOKEN: envField.string({ context: 'server', access: 'secret' }),
RATELIMIT_POINTS: envField.string({ context: 'server', access: 'public' }),
},
},
},
});