@astrojs/vercel
π Patch Changes
-
#8348
5f2c55bb5Thanks @ematipico! - - Cache result during bundling, to speed up the process of multiple functions;- Avoid creating multiple symbolic links of the dependencies when building the project with
funcitonPerRouteenabled;
- Avoid creating multiple symbolic links of the dependencies when building the project with
-
#8354
0eb09dbabThanks @Princesseuh! - Fix unnecessary warning about Sharp showing while building -
Updated dependencies [
d3a6f9f83,f21599671]:- astro@3.0.6
-
β¨ Major Changes
-
#8188
d0679a666Thanks @ematipico! - Remove support for Node 16. The lowest supported version by Astro and all integrations is now v18.14.1. As a reminder, Node 16 will be deprecated on the 11th September 2023. -
#8179
6011d52d3Thanks @matthewp! - Astro 3.0 Release Candidate -
#8188
7511a4980Thanks @ematipico! - When using an adapter that supports neither Squoosh or Sharp, Astro will now automatically use an image service that does not support processing, but still provides the other benefits ofastro:assetssuch as enforcingalt, no CLS etc to users -
#8015
9cc4e48e6Thanks @matthewp! - Remove the Vercel Edge adapter@astrojs/vercel/serverlessnow supports Edge middleware, so a separate adapter for Edge itself (deploying your entire app to the edge) is no longer necessary. Please update your Astro config to reflect this change:astro.config.mjs import { defineConfig } from 'astro/config';import vercel from '@astrojs/vercel/edge';import vercel from '@astrojs/vercel/serverless';export default defineConfig({output: 'server',adapter: vercel({edgeMiddleware: true}),});This adapter had several known limitations and compatibility issues that prevented many people from using it in production. To reduce maintenance costs and because we have a better story with Serveless + Edge Middleware, we are removing the Edge adapter.
-
#8239
52f0837bdThanks @matthewp! - Vercel adapter now defaults tofunctionPerRoute.With this change,
@astrojs/vercel/serverlessnow splits each route into its own function. By doing this, the size of each function is reduced and startup time is faster.You can disable this option, which will cause the code to be bundled into a single function, by setting
functionPerRoutetofalse. -
#8188
148e61d24Thanks @ematipico! - Reduced the amount of polyfills provided by Astro. Astro will no longer provide (no-op) polyfills for several web apis such as HTMLElement, Image or Document. If you need access to those APIs on the server, we recommend using more proper polyfills available on npm.
πΏ Minor Changes
-
#8188
cd2d7e769Thanks @ematipico! - Introduced the concept of feature map. A feature map is a list of features that are built-in in Astro, and an Adapter can tell Astro if it can support it.import { AstroIntegration } from './astro';function myIntegration(): AstroIntegration {return {name: 'astro-awesome-list',// new feature mapsupportedAstroFeatures: {hybridOutput: 'experimental',staticOutput: 'stable',serverOutput: 'stable',assets: {supportKind: 'stable',isSharpCompatible: false,isSquooshCompatible: false,},},};} -
#8188
80f1494cdThanks @ematipico! - Thebuild.splitandbuild.excludeMiddlewareconfiguration options are deprecated and have been replaced by options in the adapter config.If your config includes the
build.excludeMiddlewareoption, replace it withedgeMiddlewarein your adapter options:import { defineConfig } from "astro/config";import vercel from "@astrojs/vercel/serverless";export default defineConfig({build: {excludeMiddleware: true},adapter: vercel({edgeMiddleware: true}),});If your config includes the
build.splitoption, replace it withfunctionPerRoutein your adapter options:import { defineConfig } from "astro/config";import vercel from "@astrojs/vercel/serverless";export default defineConfig({build: {split: true},adapter: vercel({functionPerRoute: true}),});
π Patch Changes
- Updated dependencies [
d0679a666,db39206cb,2aa6d8ace,adf9fccfd,0c7b42dc6,46c4c0e05,364d861bd,2484dc408,81545197a,6011d52d3,c2c71d90c,cd2d7e769,80f1494cd,e45f30293,c0de7a7b0,65c354969,3c3100851,34cb20021,a824863ab,44f7a2872,1048aca55,be6bbd2c8,9e021a91c,7511a4980,c37632a20,acf652fc1,42785c7b7,8450379db,dbc97b121,7d2f311d4,2540feedb,ea7ff5177,68efd4a8b,7bd1b86f8,036388f66,519a1c4e8,1f58a7a1b,2ae9d37f0,a8f35777e,70f34f5a3,5208a3c8f,84af8ed9d,f003e7364,ffc9e2d3d,732111cdc,0f637c71e,33b8910cf,8a5b0c1f3,148e61d24,e79e3779d,632579dc2,3674584e0,1db4e92c1,e7f872e91,16f09dfff,4477bb41c,55c10d1d5,3e834293d,96beb883a,997a0db8a,80f1494cd,0f0625504,e1ae56e72,f32d093a2,f01eb585e,b76c166bd,a87cbe400,866ed4098,767eb6866,32669cd47]:- astro@3.0.0
- @astrojs/internal-helpers@0.2.0
-
β¨ Major Changes
-
#8239
52f0837bdThanks @matthewp! - Vercel adapter now defaults tofunctionPerRoute.With this change,
@astrojs/vercel/serverlessnow splits each route into its own function. By doing this, the size of each function is reduced and startup time is faster.You can disable this option, which will cause the code to be bundled into a single function, by setting
functionPerRoutetofalse.
π Patch Changes
-
β¨ Major Changes
π Patch Changes
π Patch Changes
π Patch Changes
- Updated dependencies [
2aa6d8ace]:- @astrojs/internal-helpers@0.2.0-beta.1
- astro@3.0.0-beta.2
- Updated dependencies [
β¨ Major Changes
-
#8015
9cc4e48e6Thanks @matthewp! - Remove the Vercel Edge adapter@astrojs/vercel/serverlessnow supports Edge middleware, so a separate adapter for Edge itself (deploying your entire app to the edge) is no longer necessary. Please update your Astro config to reflect this change:astro.config.mjs import { defineConfig } from 'astro/config';import vercel from '@astrojs/vercel/edge';import vercel from '@astrojs/vercel/serverless';export default defineConfig({output: 'server',adapter: vercel({edgeMiddleware: true}),});This adapter had several known limitations and compatibility issues that prevented many people from using it in production. To reduce maintenance costs and because we have a better story with Serveless + Edge Middleware, we are removing the Edge adapter.
π Patch Changes
-
β¨ Major Changes
-
1eae2e3f7Thanks @Princesseuh! - Remove support for Node 16. The lowest supported version by Astro and all integrations is now v18.14.1. As a reminder, Node 16 will be deprecated on the 11th September 2023. -
c022a4217Thanks @Princesseuh! - When using an adapter that supports neither Squoosh or Sharp, Astro will now automatically use an image service that does not support processing, but still provides the other benefits ofastro:assetssuch as enforcingalt, no CLS etc to users -
3dc1ca2faThanks @Princesseuh! - Reduced the amount of polyfills provided by Astro. Astro will no longer provide (no-op) polyfills for several web apis such as HTMLElement, Image or Document. If you need access to those APIs on the server, we recommend using more proper polyfills available on npm.
πΏ Minor Changes
-
9b4f70a62Thanks @ematipico! - Introduced the concept of feature map. A feature map is a list of features that are built-in in Astro, and an Adapter can tell Astro if it can support it.import { AstroIntegration } from './astro';function myIntegration(): AstroIntegration {return {name: 'astro-awesome-list',// new feature mapsupportedAstroFeatures: {hybridOutput: 'experimental',staticOutput: 'stable',serverOutput: 'stable',assets: {supportKind: 'stable',isSharpCompatible: false,isSquooshCompatible: false,},},};} -
3fdf509b2Thanks @ematipico! - Thebuild.splitandbuild.excludeMiddlewareconfiguration options are deprecated and have been replaced by options in the adapter config.If your config includes the
build.excludeMiddlewareoption, replace it withedgeMiddlewarein your adapter options:import { defineConfig } from "astro/config";import vercel from "@astrojs/vercel/serverless";export default defineConfig({build: {excludeMiddleware: true},adapter: vercel({edgeMiddleware: true}),});If your config includes the
build.splitoption, replace it withfunctionPerRoutein your adapter options:import { defineConfig } from "astro/config";import vercel from "@astrojs/vercel/serverless";export default defineConfig({build: {split: true},adapter: vercel({functionPerRoute: true}),});
π Patch Changes
-
π 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
-