-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathastro.config.mjs
27 lines (26 loc) · 933 Bytes
/
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
import { defineConfig, envField } from 'astro/config';
import bun from "@nurodev/astro-bun";
import tailwind from "@astrojs/tailwind";
// https://astro.build/config
export default defineConfig({
output: "server",
adapter: bun({
mode: "standalone",
}),
integrations: [tailwind()],
server: {
host: import.meta.env.HOST || '0.0.0.0',
port: import.meta.env.PORT || 4321
},
experimental: {
env: {
schema: {
BASE_DOMAIN: envField.string({ context: 'server', access: 'public', optional: true }),
NAMESERVERS: envField.string({ context: 'server', access: 'public', optional: true }),
PORT: envField.number({ context: 'server', access: 'public', default: 4321 }),
NODE_ENV: envField.string({ context: 'server', access: 'public', default: 'development' }),
HOST: envField.string({ context: 'server', access: 'public', default: '0.0.0.0' }),
},
},
},
});