0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-03-14 14:29:30 +01:00
Bootstrap/site/astro.config.ts
Julien Déramond 3afdd5fcc6
All checks were successful
BrowserStack / browserstack (push) Has been skipped
docs: migration to Astro
Co-authored-by: HiDeoo <494699+HiDeoo@users.noreply.github.com>
2025-03-10 20:29:07 +01:00

31 lines
921 B
TypeScript

import { defineConfig } from 'astro/config'
import { bootstrap } from './src/libs/astro'
import { getConfig } from './src/libs/config'
import { algoliaPlugin } from './src/plugins/algolia-plugin'
import { stackblitzPlugin } from './src/plugins/stackblitz-plugin'
const isDev = process.env.NODE_ENV === 'development'
const site = isDev
? // In development mode, use the local dev server.
'http://localhost:4321'
: process.env.DEPLOY_PRIME_URL !== undefined
? // If deploying on Netlify, use the `DEPLOY_PRIME_URL` environment variable.
process.env.DEPLOY_PRIME_URL
: // Otherwise, use the `baseURL` value defined in the `config.yml` file.
getConfig().baseURL
// https://astro.build/config
export default defineConfig({
integrations: [bootstrap()],
markdown: {
smartypants: false,
syntaxHighlight: 'prism'
},
site,
vite: {
plugins: [algoliaPlugin(), stackblitzPlugin()]
}
})