Skip to content

Commit

Permalink
add isr for production mode for astro.config
Browse files Browse the repository at this point in the history
  • Loading branch information
milewskibogumil committed Dec 21, 2024
1 parent fe6155a commit 8f9c8aa
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions apps/astro/astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ export default defineConfig({
prefetchAll: true
},
redirects: redirects,
output: isPreviewDeployment ? "server" : "static",
adapter: vercel({}),
output: "server",
adapter: vercel({
...(!isPreviewDeployment && {
isr: {
bypassToken: process.env.VERCEL_DEPLOYMENT_ID,
}
})
}),
});

0 comments on commit 8f9c8aa

Please sign in to comment.