// @ts-check
import { defineConfig } from 'astro/config';
import mdx from '@astrojs/mdx';
import sitemap from '@astrojs/sitemap';
import tailwind from '@astrojs/tailwind';
// import cloudflare from '@astrojs/cloudflare';  // Commented out for local development

// https://astro.build/config
export default defineConfig({
  site: 'https://argobox.com', // Updated site URL for ArgoBox
  output: 'static',
  // adapter: cloudflare(),  // Commented out for local development
  integrations: [
    mdx(),
    sitemap(),
    tailwind(),
  ],
  markdown: {
    shikiConfig: {
      theme: 'one-dark-pro',
      wrap: true
    },
    remarkPlugins: [],
    rehypePlugins: []
  },
  compressHTML: false, // Disable HTML compression to avoid parsing errors
  build: {
    format: 'file',  // Use 'file' instead of 'directory' format
  }
});