Socket
Socket
Sign inDemoInstall

@sveltejs/adapter-vercel

Package Overview
Dependencies
Maintainers
3
Versions
138
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.


Version published
Weekly downloads
63K
increased by4.72%
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 30 Oct 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc