astro/packages/integrations/cloudflare/test/fixtures/wasm-function-per-route/astro.config.mjs
Adrian Lyjak faeead4232
feat(@astrojs/cloudflare): Add support for wasm module imports (#8542)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-22 16:58:00 +02:00

12 lines
282 B
JavaScript

import { defineConfig } from 'astro/config';
import cloudflare from '@astrojs/cloudflare';
export default defineConfig({
adapter: cloudflare({
mode: 'directory',
functionPerRoute: true,
wasmModuleImports: true
}),
output: 'server',
vite: { build: { minify: false } }
});