Skip to content

Images not displayed with no param #106

Open
@gregBerthelot

Description

@gregBerthelot

Describe the bug
I updated from 2.06 to latest and deploy. Now our images are not displayed behind CloudFront with no params, eg. xoxo.cloudfront.net/image.jpg?w=200 is well displayed but not xoxo.cloudfront.net/image.jpg for which I get {}

Screenshots
https://recordit.co/XaD4Qtdetv

Serverless: Deprecation warning: "service" is not accessible (configured behind variables which cannot be resolved at this stage).
            Starting with next major release, this will be communicated with a thrown error.
            Set "variablesResolutionMode: 20210326" in your service config, to adapt to this behavior now
            More Info: https://www.serverless.com/framework/docs/deprecations/#NEW_VARIABLES_RESOLVER
Serverless: Running "serverless" installed locally (in service node_modules)
Serverless: Deprecation warning: Detected unrecognized CLI options: "--settings".
            Starting with the next major, Serverless Framework will report them with a thrown error
            More Info: https://www.serverless.com/framework/docs/deprecations/#UNSUPPORTED_CLI_OPTIONS
Serverless: Deprecation warning: Resolution of lambda version hashes was improved with better algorithm, which will be used in next major release.
            Switch to it now by setting "provider.lambdaHashingVersion" to "20201221".
            While it is highly encouraged to upgrade to new algorithm, you can still use the old approach by setting "provider.lambdaHashingVersion" to "20200924".
            More Info: https://www.serverless.com/framework/docs/deprecations/#LAMBDA_HASHING_VERSION_V2
Serverless: Packaging service...
Serverless: Excluding development dependencies...
Serverless: Excluding development dependencies...
Serverless: Warning! You're using the AWS_PROXY in combination with response configuration in your function "index". Serverless will remove this configuration automatically before deployment.
Serverless: Uploading CloudFormation file to S3...
Serverless: Uploading artifacts...
Serverless: Uploading service index.zip file to S3 (335.8 kB)...
Serverless: Uploading service sharp.zip file to S3 (11.49 MB)...
Serverless: Validating template...
Serverless: Updating Stack...
Serverless: Checking Stack update progress...
.....................
Serverless: Stack update finished...
Service Information
service: serverlessTemplateImg
stage: dev
region: eu-west-3
stack: serverlessTemplateImg-dev
resources: 13
api keys:
  None
endpoints:
  GET - https://XXXXX.execute-api.eu-west-3.amazonaws.com/dev/{any+}
functions:
  index: serverlessTemplateImg-dev-index
layers:
  sharp: arn:aws:lambda:eu-west-3:XXXXX:layer:dev-sharp:16
Serverless: Removing old service artifacts from S3...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions