@astrojs/vercel
π Patch Changes
- #7659
57a5eff5cThanks @natemoo-re! - Fix critical build regression.@vercel/nftis excluded from the bundle automatically.
- #7659
π Patch Changes
-
#7621
2ddf34262Thanks @ematipico! - Improve file detection of the middleware file handler -
Updated dependencies [
86e19c7cf]:- astro@2.8.2
-
πΏ Minor Changes
-
#7532
9e5fafa2bThanks @ematipico! - Support for Vercel Edge Middleware via Astro middleware.When a project uses the new option Astro
build.excludeMiddleware, the@astrojs/vercel/serverlessadapter will automatically create a Vercel Edge Middleware that will automatically communicate with the Astro Middleware.Check the documentation for more details.
π Patch Changes
-
πΏ Minor Changes
-
#7514
154af8f5eThanks @matthewp! - Split support in Vercel ServerlessThe Vercel adapter builds to a single function by default. Astro 2.7 added support for splitting your build into separate entry points per page. If you use this configuration the Vercel adapter will generate a separate function for each page. This can help reduce the size of each function so they are only bundling code used on that page.
astro.config.mjs import { defineConfig } from 'astro/config';import vercel from '@astrojs/vercel/serverless';export default defineConfig({output: 'server',adapter: vercel(),build: {split: true,},});
π Patch Changes
-
πΏ Minor Changes
-
#7067
57f8d14c0Thanks @matthewp! - Support for experimental redirectsThis adds support for the redirects RFC in the Vercel adapter. No changes are necessary, simply use configured redirects and the adapter will output the vercel.json file with the configuration values.
π Patch Changes
-
#7260
39403c32fThanks @natemoo-re! - Unflags support foroutput: 'hybrid'mode, which enables pre-rendering by default. The additionalexperimental.hybridOutputflag can be safely removed from your configuration. -
Updated dependencies [
57f8d14c0,414eb19d2,a7e2b37ff,dd1a6b6c9,d72cfa7ca,144813f73,b5213654b,e3b8c6296,890a2bc98,39403c32f,101f03209]:- astro@2.6.0
-
π Patch Changes
πΏ Minor Changes
π Patch Changes
-
#6876
06ca3702fThanks @nblackburn! - Correctly handle analytics id where present -
#6991
719002ca5Thanks @MoustaphaDev! - Enable experimental support for hybrid SSR with pre-rendering enabled by defaultastro.config.mjs
import { defineConfig } from 'astro/config';export defaultdefineConfig({output: 'hybrid',experimental: {hybridOutput: true,},})Then add
export const prerender = falseto any page or endpoint you want to opt-out of pre-rendering.src/pages/contact.astro
---export const prerender = false;if (Astro.request.method === 'POST') {// handle form submission}---<form method="POST"><input type="text" name="name" /><input type="email" name="email" /><button type="submit">Submit</button></form> -
#7101
2994bc52dThanks @bluwy! - Add missing esbuild dependency -
#7101
2994bc52dThanks @bluwy! - Always build edge/worker runtime with VitewebworkerSSR target -
#7104
826e02890Thanks @bluwy! - Specify"files"field to only publish necessary files -
Updated dependencies [
4516d7b22,e186ecc5e,c6d7ebefd,914c439bc,e9fc2c221,075eee08f,719002ca5,fc52681ba,fb84622af,cada10a46,cd410c5eb,73ec6f6c1,410428672,763ff2d1e,c1669c001,3d525efc9]:- astro@2.5.0
-
π Patch Changes
- #6776
84a464888Thanks @nblackburn! - Revert change to environment variable
- #6776