0.2.0 • Published 8 months ago
amplify-adapter v0.2.0
amplify-adapter
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
Video tutorial
Official documentation on AWS Amplify
https://docs.aws.amazon.com/amplify/latest/userguide/get-started-sveltekit.html
Sveltekit amplify adapter installation
- Install with npm, pnpm or yarn:
npm install --save-dev amplify-adapter
- Add the adapter to your
svelte.config.js
:
// svelte.config.js
import adapter from 'amplify-adapter';
Amplify Hosting Integration (CI/CD)
- Create a new app in Amplify Console, choose your git provider and click
Next
.
- Select your repository and branch, and click
Next
.
- Click
Edit YML
button:
- Set Artifact base directory to
build
and add the following lines tofrontend -> build
phase:
- cd build/compute/default/
- npm i --omit=dev
version: 1
frontend:
phases:
preBuild:
commands:
- 'npm i'
build:
commands:
- 'npm run build'
- 'cd build/compute/default/'
- 'npm i --omit=dev'
artifacts:
baseDirectory: build
files:
- '**/*'
cache:
paths:
- node_modules/**/*
- Click
Next
toReview
your app configuration and clickSave and Deploy
.
License
0.1.3-beta.1
8 months ago
0.1.4-alpha.1
8 months ago
0.1.4-alpha.2
8 months ago
0.2.0
8 months ago
0.1.4
8 months ago
0.1.3
8 months ago
0.1.2
1 year ago
0.1.1
1 year ago
0.0.12-alpha.3
1 year ago
0.0.12-alpha.2
1 year ago
0.0.12-alpha.4
1 year ago
0.1.0
1 year ago
0.0.12-alpha.1
2 years ago
0.0.12-alpha.0
2 years ago
0.0.10
2 years ago
0.0.11
2 years ago
0.0.9-alpha.2
2 years ago
0.0.9-alpha.3
2 years ago
0.0.9-alpha.0
2 years ago
0.0.9-alpha.1
2 years ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago