cloudflare / cloudflare/serverless-cloudflare-workers

unrecognized property 'webpackConfig'

Open
#75 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
180
Forks
34
PR merge metrics
No merged PRs in 30d

Description

`npx serverless invoke -f hello -d '{"hello":"world"}'`

``` bash
> $ npx serverless invoke -f hello -d '{"hello":"world"}' ⬡ 18.12.1
Warning: You're relying on provider "cloudflare" defined by a plugin which doesn't provide a validation schema for its config.
Please report the issue at its bug tracker linking: https://www.serverless.com/framework/docs/providers/aws/guide/plugins#extending-validation-schema
You may turn off this message with "configValidationMode: off" setting

Warning: Invalid configuration encountered
at root: unrecognized property 'webpackConfig'

Learn more about configuration validation here: http://slss.io/configuration-validation
Environment: darwin, node 18.12.1, framework 3.25.1, plugin 6.2.2, SDK 4.3.2
Docs: docs.serverless.com
Support: forum.serverless.com
Bugs: github.com/serverless/serverless/issues

```

`serverless.yml`
``` yml
service: token-portal-api
webpackConfig: webpack.config #webpack config path without js extension from root folder.

frameworkVersion: '3'

provider:
name: cloudflare
config:
accountId: ${file(./.envs/.production/serverless-prod.yml):CLOUDFLARE_ACCOUNT_ID}
zoneId: ${file(./.envs/.production/serverless-prod.yml):CLOUDFLARE_ZONE_ID}

plugins:
- serverless-cloudflare-workers

custom:
domain: portal.api.com

functions:
hello:
name: hello
webpack: webpack.config.js
script: helloWorld
events:
- http:
url: ${self:custom.domain}/hello/*
method: GET

resources:
wasm:
- variable: WASM
file: rust-wasm/pkg/rust_wasm_bg.wasm

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.