
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@sveltejs/adapter-vercel
Advanced tools
Adapter for Svelte apps that creates a Vercel app, using a function for dynamic server rendering.
Adapter for Svelte apps that creates a Vercel app, using a function for dynamic server rendering.
Add "@sveltejs/adapter-vercel": "next"
to the devDependencies
in your package.json
and run npm install
.
Then in your svelte.config.js
:
import vercel from '@sveltejs/adapter-vercel';
export default {
kit: {
...
adapter: vercel()
}
};
As an escape hatch, you may optionally specify a function which will receive the final esbuild options generated by this adapter and returns a modified esbuild configuration. The result of this function will be passed as-is to esbuild. The function can be async.
For example, you may wish to add a plugin:
adapterVercel({
esbuild(defaultOptions) {
return {
...defaultOptions,
plugins: []
};
}
});
The default options for this version are as follows:
{
entryPoints: ['.svelte-kit/vercel/entry.js'],
outfile: `pathToLambdaFolder/index.js`,
bundle: true,
inject: ['pathTo/shims.js'],
platform: 'node'
}
FAQs
A SvelteKit adapter that creates a Vercel app
The npm package @sveltejs/adapter-vercel receives a total of 50,189 weekly downloads. As such, @sveltejs/adapter-vercel popularity was classified as popular.
We found that @sveltejs/adapter-vercel demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.