-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
fix: updated @default annotation for runtime
#12717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
798487b
06dc9d9
ebea2b2
d94d123
c797e19
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@sveltejs/adapter-vercel": patch | ||
| --- | ||
|
|
||
| style(adapter-vercel): updated `@default` annotation for runtime | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -6,9 +6,9 @@ export default function plugin(config?: Config): Adapter; | |||||
| export interface ServerlessConfig { | ||||||
| /** | ||||||
| * Whether to use [Edge Functions](https://vercel.com/docs/concepts/functions/edge-functions) (`'edge'`) or [Serverless Functions](https://vercel.com/docs/concepts/functions/serverless-functions) (`'nodejs18.x'`, `'nodejs20.x'` etc). | ||||||
| * @default 'nodejs18.x' | ||||||
| * @default Same as the build environment | ||||||
| */ | ||||||
| runtime?: `nodejs${number}.x`; | ||||||
| runtime?: 'nodejs18.x' | 'nodejs20.x'; | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd like to keep this as the type because Vercel may deprecate old versions after some time and/or introduce new ones, and we don't want people to upgrade to newer versions of the adapter just for silencing type errors / don't want to make a major version bump just because we gotta remove a type
Suggested change
|
||||||
| /** | ||||||
| * To which regions to deploy the app. A list of regions. | ||||||
| * More info: https://vercel.com/docs/concepts/edge-network/regions | ||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.