dherault / serverless-offline

Emulate AWS λ and API Gateway locally when developing your Serverless project
MIT License
5.19k stars 796 forks source link

flag --apiKey no longer working with version 12 #1695

Open berni-mad opened 1 year ago

berni-mad commented 1 year ago

Bug Report

Current Behavior

I did an upgrade of the plugin from version 6 to version 12. With version 6, the following command would run without any issues.

serverless offline start -s local --host=0.0.0.0 --apiKey local

Now, with version 12, the plugin says that --apiKey is not a valid option, even though is still present in the latest documentation.

(https://www.serverless.com/plugins/serverless-offline)

Any idea why? If this option has been removed, could you please update the documentation accordingly and provide an alternative way to set up an apiKey?

Thanks,

Bernat

Lyrete commented 1 year ago

Fairly sure they removed the flag in v11 https://github.com/dherault/serverless-offline/releases/tag/v11.0.0 but seems like you can specify it in the config still.

jacobmoyle commented 11 months ago

@Lyrete is correct. The docs you linked to (https://www.serverless.com/plugins/serverless-offline) tripped me up and are out of date.

See this thread: https://github.com/dherault/serverless-offline/issues/1608#issuecomment-1306200311