// Writes dist/index.html (the page as served at the root of a host) for local file:// tests and art capture. import { mkdirSync, writeFileSync } from 'node:fs' import { renderPage } from '../app/page.ts' mkdirSync('dist', { recursive: true }) writeFileSync('dist/index.html', renderPage({ origin: 'http://localhost', appBase: '', assetBase: '/a' })) console.log('dist/index.html written')