Skip to content
This repository has been archived by the owner on Feb 1, 2025. It is now read-only.

Commit

Permalink
Add support for basePath variable (#44)
Browse files Browse the repository at this point in the history
ref(serverless-http): add support for basePath variable
  • Loading branch information
john-tipper authored Oct 7, 2022
1 parent 196ac37 commit 9053b45
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions lib/standalone/server-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const server = slsHttp(
{
// We have separate function for handling images. Assets are handled by S3.
binary: false,
basePath: process.env.NEXTJS_LAMBDA_BASE_PATH
},
)

Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"constructs": "^10",
"next": "^12.3.0",
"replace-in-file": "^6.3.5",
"serverless-http": "^3.0.2",
"serverless-http": "^3.0.3",
"simple-git": "^3.14.1"
},
"devDependencies": {
Expand Down

0 comments on commit 9053b45

Please sign in to comment.