New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sveltejs/adapter-vercel

Package Overview
Dependencies
Maintainers
3
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sveltejs/adapter-vercel

Adapter for Svelte apps that creates a Vercel app, using a function for dynamic server rendering.

1.0.0-next.0
Source
npm
Version published
Weekly downloads
63K
1.98%
Maintainers
3
Weekly downloads
 
Created
Source

adapter-vercel

Adapter for Svelte apps that creates a Vercel app, using a function for dynamic server rendering.

This currently just builds an AWS lambda and mounts it as an API route, before writing some vercel config to serve up assets and rewrite requests to the lambda.

Due to some strong opinions of the vercel deployment mechanism, we currently bung the whole server into the API directory to prevent the application appearing to be static, which isn't ideal.

Vercel are due to make some changes to the way applications are built and deployed. Once this happens, this builder will change to that new format.

Usage

Due to the constraints listed above, you need to run npm run build outside vercel first, and then deploy the project with vercel. You need to ensure that vercel doesn't try to build your app, and just deploys what you give it. To do that:

echo 'package.json' > .vercelignore
npm run build
vercel

FAQs

Package last updated on 02 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts