Skip to content

Commit 240634b

Browse files
author
James Bray
committed
Update readme
1 parent 4eab744 commit 240634b

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,24 @@ npm install --save-dev @yarbsemaj/adapter-lambda
88
```
99
## Usage
1010

11-
In your `svelte.config.cjs` configure the adapter as bellow;
11+
In your `svelte.config.js` configure the adapter as bellow;
1212

1313
```js
14-
import preprocess from 'svelte-preprocess';
14+
import preprocess from 'svelte-preprocess'; //Optional
1515
import serverless from '@yarbsemaj/adapter-lambda';
1616

1717
/** @type {import('@sveltejs/kit').Config} */
1818
const config = {
19-
preprocess: preprocess(),
19+
preprocess: preprocess(), //Optional
2020

2121
kit: {
2222
target: '#svelte',
2323
adapter: serverless(),
2424
},
2525

2626
};
27+
28+
export default config;
2729
```
2830
Copy `serverless.yml` from the root of this repo to the root of your project
2931

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@yarbsemaj/adapter-lambda",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"license": "MIT",
55
"description": "An adapter for [SvelteKit](https://kit.svelte.dev/) for AWS Lambda via Lambda Proxy and API Gateway. [Serverless](https://www.serverless.com/) deployment.",
66
"repository": {

0 commit comments

Comments
 (0)