Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit 3351348

Browse files
ematipicobluwysarah11918
authored
feat(vercel): single entrypoint (#424)
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
1 parent 9730bbf commit 3351348

File tree

12 files changed

+1340
-691
lines changed

12 files changed

+1340
-691
lines changed

.changeset/fast-singers-design.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@astrojs/vercel': minor
3+
---
4+
5+
Deprecates the entrypoints `@astrojs/vercel/serverless` and `@astrojs/vercel/static`. These will continue to work but are no longer documented and will be removed in a future version. We recommend updating to the `@astrojs/vercel` entrypoint as soon as you are able:
6+
7+
```diff
8+
-import vercel from "@astrojs/vercel/static"
9+
+import vercel from "@astrojs/vercel"
10+
```
11+
12+
13+
```diff
14+
-import vercel from "@astrojs/vercel/serverless"
15+
+import vercel from "@astrojs/vercel"
16+
```

packages/vercel/package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@
1414
"bugs": "https://github.com/withastro/adapters/issues",
1515
"homepage": "https://docs.astro.build/en/guides/integrations-guide/vercel/",
1616
"exports": {
17-
".": {
18-
"types": "./types.d.ts"
19-
},
17+
".": "./dist/index.js",
18+
"./entrypoint": "./dist/serverless/entrypoint.js",
2019
"./serverless": "./dist/serverless/adapter.js",
2120
"./serverless/entrypoint": "./dist/serverless/entrypoint.js",
2221
"./static": "./dist/static/adapter.js",

packages/vercel/src/image/shared.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export type DevImageService = 'sharp' | (string & {});
1818
// https://vercel.com/docs/build-output-api/v3/configuration#images
1919
type ImageFormat = 'image/avif' | 'image/webp';
2020

21-
type RemotePattern = {
21+
export type RemotePattern = {
2222
protocol?: 'http' | 'https';
2323
hostname: string;
2424
port?: string;

0 commit comments

Comments
 (0)