mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 09:01:03 -08:00
26 lines
789 B
JavaScript
26 lines
789 B
JavaScript
// @ts-check
|
|
import { readFileSync } from 'node:fs';
|
|
import { defineConfig } from 'astro/config';
|
|
import sitemap from '@astrojs/sitemap';
|
|
import mdx from '@astrojs/mdx';
|
|
|
|
/** Published version for offline downloads; independent of the nightly base. */
|
|
const { version } = JSON.parse(
|
|
readFileSync(new URL('./released-version.json', import.meta.url), 'utf8'),
|
|
);
|
|
|
|
// Tailwind (v3) is applied via apps/website/postcss.config.mjs — the
|
|
// @astrojs/tailwind integration only supports Astro <= 5.
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
site: 'https://4gray.github.io',
|
|
base: '/iptvnator',
|
|
outDir: '../../dist/apps/website',
|
|
integrations: [sitemap(), mdx()],
|
|
vite: {
|
|
define: {
|
|
__IPTVNATOR_RELEASED_VERSION__: JSON.stringify(version),
|
|
},
|
|
},
|
|
});
|