dont you need to specify the exported function nam...
# help
p
dont you need to specify the exported function name of your handler? like
handler: bin/admin.funcName
?
y
Apparently not.. I corrected the following in the yml file and now it works:
Copy code
package:
  individually: true
  excludeDevDependencies: false
  exclude:
    - ./*
    - node_modules/**
exclude
list failed because my project didn't have any files fitting the criteria
./**
I can now deploy after changing the value to
./*
Copy code
>> sls deploy function -f createAdmin

Serverless: Packaging function: createAdmin...
Serverless: Uploading function: createAdmin (37.24 MB)...
Serverless: Successfully deployed function: createAdmin
Serverless: Configuration did not change. Skipping function configuration update.
j
👍