Adapter for Solid apps that work on AWS Lambda and AWS Lambda@Edge.
Add the adapter in your vite.config.js
file. By default this deploys to an AWS Lambda Function.
import solid from "solid-start/vite";
import aws from "solid-start-sst";
export default defineConfig({
plugins: [solid({ adapter: aws() })],
});
To deploy to the edge pass in the edge option.
import solid from "solid-start/vite";
import aws from "solid-start-sst";
export default defineConfig({
plugins: [solid({ adapter: aws({ edge: true }) })],
});