mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -05:00
e2fe51c828
* feat(vercel): isr * bypass token * exclusion of certain paths * add test * remove search params in dev mode * Apply suggestions from code review Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * Apply suggestions from code review * Apply suggestions from code review * fix missing await * escape src for regex * cleanup * revalidate -> expiration * update type docs * always exclude /_image * add changeset * Apply suggestions from code review * always create serverless function for /_image * Apply suggestions from code review Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Apply suggestions from code review --------- Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
13 lines
281 B
JavaScript
13 lines
281 B
JavaScript
import { defineConfig } from 'astro/config';
|
|
import vercel from '@astrojs/vercel/serverless';
|
|
|
|
export default defineConfig({
|
|
output: "server",
|
|
adapter: vercel({
|
|
isr: {
|
|
bypassToken: "1c9e601d-9943-4e7c-9575-005556d774a8",
|
|
expiration: 120,
|
|
exclude: ["/two"]
|
|
}
|
|
})
|
|
});
|