import { defineConfig } from 'astro/config';
import node from '@astrojs/node';
import { remarkVideoPlugin } from './src/utils/remarkVideoPlugin.ts';

export default defineConfig({
  output: 'server',
  adapter: node({
    mode: 'standalone'
  }),
  
  markdown: {
    remarkPlugins: [
      remarkVideoPlugin
    ],
    extendDefaultPlugins: true
  },
  
  build: {
    assets: '_astro'
  },
  
  server: {
    port: 4321,
    host: true
  },
  allowImportingTsExtensions: true
});