0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/packages/integrations/sitemap/test/fixtures/ssr/astro.config.mjs
Atila Fassina ad907196cb
Sitemap: support SSR routes (#6534)
* feat(sitemap): support SSR generated routes

* feat(sitemap): add changeset for SSR support

* refactor: move logic to `astro:build:done`

* generate route to obey `trailingSlash` setting

* add logic to respect "directory" build format

* integration(sitemap): add unit test for ssr support
2023-05-03 12:19:45 -04:00

12 lines
283 B
JavaScript

import { defineConfig } from 'astro/config';
import sitemap from '@astrojs/sitemap';
import nodeServer from '@astrojs/node'
export default defineConfig({
integrations: [sitemap()],
site: 'http://example.com',
output: 'server',
adapter: nodeServer({
mode: "standalone"
})
})