aboutsummaryrefslogtreecommitdiff
path: root/packages/integrations/netlify/test/functions/fixtures/middleware/astro.config.mjs
blob: 0da6bf580408c5416b72d17e72361aa1d1e20c9c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import netlify from '@astrojs/netlify';
import { defineConfig } from 'astro/config';

export default defineConfig({
  output: 'server',
  adapter: netlify({
    edgeMiddleware: process.env.EDGE_MIDDLEWARE === 'true',
    imageCDN: process.env.DISABLE_IMAGE_CDN ? false : undefined,
  }),
  image: {
    remotePatterns: [{
      protocol: 'https',
      hostname: '*.example.org',
      pathname: '/images/*',
    }],
    domains: ['example.net', 'secret.example.edu'],
  },
  site: `http://example.com`,
});