This commit is contained in:
adm
2024-02-29 02:39:06 +03:00
parent fe7a546f91
commit e5cd1b67eb
87 changed files with 21432 additions and 0 deletions

38
astro.config.mjs Normal file
View File

@@ -0,0 +1,38 @@
import sitemap from '@astrojs/sitemap'
import tailwind from '@astrojs/tailwind'
import vue from "@astrojs/vue"
import { defineConfig } from 'astro/config'
const DEV_PORT = 2121;
// https://astro.build/config
export default defineConfig({
site: process.env.CI ? 'https://###.github.io'
//: `https://fipi.pro`,
//: `https://we-property.ru`,
: `http://localhost:${DEV_PORT}`,
base: process.env.CI ? '/we-property-astro-admin-dashboard' : undefined,
// output: 'server',
/* Like Vercel, Netlify,… Mimicking for dev. server */
// trailingSlash: 'always',
server: {
address: 'http://127.0.0.1:8000/api/',
//address: 'https://fipi.pro/api/',
/* Dev. server only */
port: DEV_PORT
},
integrations: [
//
sitemap(), tailwind(), vue({
template: {
compilerOptions: {
// treat any tag that starts with ion- as custom elements
isCustomElement: (tag) => tag.startsWith('ion-'),
},
},
// ...
}),
]
});