0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00
astro/packages/integrations/vercel/test/fixtures/isr/astro.config.mjs
TK a573cc199a
feat: allow dynamic route segments in isr.exclude array (#10513)
* Allow dynamic route segments in isr.exclude array

* copy over eslint-disable as well

* add test

* update test: slashes dont need to be escaped

* update changeset

---------

Co-authored-by: lilnasy <69170106+lilnasy@users.noreply.github.com>
2024-03-28 23:46:18 +05:30

13 lines
304 B
JavaScript

import vercel from '@astrojs/vercel/serverless';
import { defineConfig } from 'astro/config';
export default defineConfig({
output: "server",
adapter: vercel({
isr: {
bypassToken: "1c9e601d-9943-4e7c-9575-005556d774a8",
expiration: 120,
exclude: ["/two", "/excluded/[dynamic]"]
}
})
});