File tree Expand file tree Collapse file tree 2 files changed +32
-14
lines changed
Expand file tree Collapse file tree 2 files changed +32
-14
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ // @ts -check
2+ import { defineConfig } from "astro/config" ;
3+
4+ import react from "@astrojs/react" ;
5+ import tailwindcss from "@tailwindcss/vite" ;
6+
7+ const config = {
8+ local : {
9+ SITE_URL : "http://localhost:4321" ,
10+ BASE_PATH : "" ,
11+ } ,
12+ production : {
13+ SITE_URL : "https://esa-apex.github.io/apex_document_repo/" ,
14+ BASE_PATH : "" ,
15+ } ,
16+ } ;
17+
18+ const buildTarget = ( process . env . BUILD_TARGET ??
19+ "local" ) as keyof typeof config ;
20+
21+ const { SITE_URL , BASE_PATH } = config [ buildTarget ] ;
22+
23+ // https://astro.build/config
24+ export default defineConfig ( {
25+ site : SITE_URL ,
26+ base : BASE_PATH ,
27+ integrations : [ react ( ) ] ,
28+
29+ vite : {
30+ plugins : [ tailwindcss ( ) ] ,
31+ } ,
32+ } ) ;
You can’t perform that action at this time.
0 commit comments