-
Notifications
You must be signed in to change notification settings - Fork 2
/
astro.config.mjs
47 lines (41 loc) · 1.05 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import deno from '@deno/astro-adapter';
import { defineConfig } from 'astro/config';
import react from "@astrojs/react";
import sitemap from '@astrojs/sitemap';
import tailwind from '@astrojs/tailwind';
const DEV_PORT = 3000;
// https://astro.build/config
export default defineConfig({
// experimental: {
// },
image: {
service: {
entrypoint: 'astro/assets/services/noop'
}
},
viewTransitions: true,
redirects: {
'/login': '/authentication/sign-in',
'/register': '/authentication/sign-up',
},
build:{
},
site: process.env.CI ? 'https://credebl-dev-ui.deno.dev' : `http://localhost:${DEV_PORT}`,
base: process.env.CI ? '/' : undefined,
output: 'server',
/* Like Vercel, Netlify,… Mimicking for dev. server */
// trailingSlash: 'always',
server: {
/* Dev. server only */
port: DEV_PORT,
},
integrations: [
//
sitemap(), tailwind(), react()],
adapter: deno(),
});
if (typeof globalThis !== 'undefined' && typeof Deno !== 'undefined') {
globalThis.process ||= {
env: Deno.env.toObject()
}
}