-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
38 lines (34 loc) · 1.13 KB
/
astro.config.mjs
File metadata and controls
38 lines (34 loc) · 1.13 KB
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
36
37
38
import sitemap from '@astrojs/sitemap';
import { defineConfig } from 'astro/config';
import compress from 'astro-compress';
import rename from 'astro-rename';
import HashRenamer from './src/lib/hash-renamer';
const renamer = new HashRenamer();
// https://astro.build/config
export default defineConfig({
// Your final, deployed URL.
//
// Astro uses this full URL to generate your sitemap
// and canonical URLs in your final build.
site: 'https://hawapi.theproject.id',
// Specifies the output target for builds.s
//
// ‘static’ - Building a static site to be deploy to any static host.
output: 'static',
// Set the directory that astro build writes your final build to.
outDir: './build',
// Astro sitemap.
//
// Ref: https://docs.astro.build/en/guides/integrations-guide/sitemap/
integrations: [
sitemap(),
rename({
rename: { except: ['title'], strategy: (key) => renamer.rename(key) },
}),
compress(),
],
// Listen on all addresses, including LAN and public addresses.
//
// Ref: https://docs.astro.build/en/reference/configuration-reference/#serverhost
server: { host: true },
});