36 lines
694 B
JavaScript
36 lines
694 B
JavaScript
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, {
|
|
enableAsync: true,
|
|
defaultOptions: {
|
|
controls: true,
|
|
autoplay: false,
|
|
muted: false,
|
|
aspectRatio: '16:9',
|
|
showMetadata: true
|
|
}
|
|
}]
|
|
],
|
|
extendDefaultPlugins: true
|
|
},
|
|
|
|
build: {
|
|
assets: '_astro'
|
|
},
|
|
|
|
server: {
|
|
port: 4321,
|
|
host: true
|
|
},
|
|
allowImportingTsExtensions: true
|
|
}); |