ea30a9d4f2
* more efficient _routes.json for cloudflare integration * added tests * updated pnpm-lock.yaml * added changeset * cleaned up test * fix: convert window path separators * updated docs * handle more cases * Apply suggestions from code review Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> * incorporate feedback from code review * used other pnpm version * better fallback for empty include array * adjust test case to changed fallback for empty include array * updated docs --------- Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
11 lines
256 B
JavaScript
11 lines
256 B
JavaScript
import { defineConfig } from 'astro/config';
|
|
import cloudflare from '@astrojs/cloudflare';
|
|
|
|
export default defineConfig({
|
|
adapter: cloudflare({ mode: 'directory' }),
|
|
output: 'hybrid',
|
|
redirects: {
|
|
'/a/redirect': '/',
|
|
},
|
|
srcDir: process.env.SRC
|
|
});
|