@buildwithharbor/pier-sst
v0.4.1
Published
Pier backend components for SST
Downloads
41
Readme
@buildwithharbor/pier-sst
Deploy a Vite-built Pier API with SST's standard Lambda, Function URL, resource linking, Live bridge, and development process.
Register the package as an SST provider; do not import it as an application dependency.
export default $config({
app() {
return {
home: "aws",
name: "my-app",
providers: {
pier: {
package: "@buildwithharbor/pier-sst",
version: "0.1.1",
},
},
};
},
async run() {
const api = new pier.PierBackend("Api", {
path: "apps/api",
});
return { api: api.url };
},
});Pier owns the generated Fetch runtime and AWS Lambda adapter. SST and the application retain ownership of infrastructure, resource links, and deployment.
