Adapter for SvelteKit apps to Amplify Host CI/CD.
Este paquete se creó para adaptar el paquete @sveltejs/node-adapter para su uso con CI/CD en AWS Amplify + SSR. Este paquete incluye los siguientes cambios:
Limitations:
- Artifacts size limit: 200 MB
- Install with npm or yarn:
npm install --save-dev amplify-adapter
- Add the adapter to your
svelte.config.js
:
// svelte.config.js
import adapter from 'amplify-adapter';
- Connect a branch to your Amplify App Hosting for CI/CD (setup default values).
- Go to
App settings > Build settings > App build specification
and set Artifact folder tobuild
(default adapter output folder) and add this lines tofrontend -> build
phase:
- cd build/compute/default/
- npm i --production
- At
App settings > Build settings > Build image settings
clicEdit
Button, and changeBuild image
toAmazon Linux:2023
.