No description
|
|
||
|---|---|---|
| src | ||
| .gitignore | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
@cocotte/astro-config
Shared Astro config factory for Cocotte brand marketing sites.
Usage
```js // astro.config.mjs import { defineBrandSiteConfig } from '@cocotte/astro-config';
export default defineBrandSiteConfig({ site: 'https://futawaifutour.com', }); ```
Options
| Name | Type | Default |
|---|---|---|
| `site` | `string` (required) | — |
| `outDir` | `string` | `'dist'` |
| `base` | `string` | `'/'` |
| `port` | `number` | (astro default) |
| `i18n` | `{ defaultLocale, locales[] }` | — |
| `integrations` | extra Astro integrations | `[]` |
| `overrides` | `Partial` | `{}` |
The factory ships:
- `output: 'static'`
- Sitemap integration (with i18n if configured)
- `build.format: 'directory'` → clean URLs
- `build.inlineStylesheets: 'auto'`
- `compressHTML: true`
- `prefetch` on hover
- Vite cssMinify + esbuild minify