Skip to content

Commit

Permalink
Remove remaining serverless-offline configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhigley committed Jan 31, 2025
1 parent 9131d25 commit 41788b3
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 26 deletions.
1 change: 0 additions & 1 deletion .env.dev

This file was deleted.

1 change: 0 additions & 1 deletion .env.local

This file was deleted.

1 change: 0 additions & 1 deletion .env.prod

This file was deleted.

23 changes: 10 additions & 13 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,6 @@ provider:
path: "./"
platform: linux/amd64

plugins:
- serverless-offline
custom:
"offline:true": # offline enabled parameters
enabled: true
filePrefix: "offline."
"offline:false": # offline disabled parameters
enabled: false
filePrefix: ""
offline: ${self:custom.offline:${strToBool(${env:IS_OFFLINE, false})}}

package:
patterns:
- "!venv/**"
Expand All @@ -49,5 +38,13 @@ package:
- "**.py"
- "**.html"

# if offline mode enabled filePrefix = 'offline.' else filePrefix = ''
functions: ${file(./serverless/${self:custom.offline.filePrefix}functions.yaml):functions}
functions:
generateRecommendations:
image:
name: poprox-recommender
memorySize: 4096
ephemeralStorageSize: 2048
events:
- httpApi:
path: /
method: post
10 changes: 0 additions & 10 deletions serverless/functions.yaml

This file was deleted.

0 comments on commit 41788b3

Please sign in to comment.