-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
astro.config.ts
35 lines (35 loc) · 1.06 KB
/
astro.config.ts
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
34
35
import { defineConfig } from 'astro/config';
import tailwind from '@astrojs/tailwind';
import sitemap from '@astrojs/sitemap';
import chalk from 'chalk';
import figlet from 'figlet';
import node from '@astrojs/node';
import config from "./src/config";
// https://astro.build/config
export default defineConfig({
root: './',
publicDir: 'public',
output: 'server',
adapter: node({
mode: 'standalone',
}),
server: {
port: Number(config.website.port),
host: true,
},
site: `https://` + config.website.url,
integrations: [
sitemap(),
tailwind()
],
});
console.clear();
console.log(chalk.gray(' '));
console.log(chalk.gray(' ') + figlet.textSync('KlovitClient'));
console.log(chalk.gray(' '));
console.log(
chalk.gray(' ') +
chalk.cyan('[KlovitClient]') +
chalk.white(' You can now access the dashboard at the following addresses - '));
console.log(" " + chalk.underline(`http://localhost:${config.website.port}/`));
console.log(" " + chalk.underline(`http://0.0.0.0:${config.website.port}/`));