-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
27 lines (19 loc) · 909 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 } from 'astro/config';
// https://astro.build/config
import tailwind from "@astrojs/tailwind";
// if in production we need a base path for the gitlab pages
const base = process.env.NODE_ENV === 'production' ? '/astro-cloudflare-error' : '/';
// https://astro.build/config
export default defineConfig({
integrations: [tailwind()],
// // GitLab Pages requires exposed files to be located in a folder called "static".
// // So we're instructing Astro to put the static build output in a folder of that name.
// outDir: 'public',
// The folder name Astro uses for static files (`static`) is already reserved
// for the build output. So in deviation from the defaults we're using a folder
// called `static` instead.
publicDir: 'static',
// GitLab pages are served from a directory not the root of the domain.
base: base,
site: 'https://ehlovader.github.io',
});