mirror of
https://github.com/zhigang1992/workers-graphql-server.git
synced 2026-01-12 17:53:23 +08:00
30 lines
504 B
TOML
30 lines
504 B
TOML
name = "workers-graphql-server"
|
|
type = "webpack"
|
|
|
|
account_id = ""
|
|
zone_id = ""
|
|
route = ""
|
|
|
|
workers_dev = true
|
|
webpack_config = "webpack.config.js"
|
|
compatibility_date = "2021-10-03"
|
|
|
|
# Enable a kv-namespace to use the KV caching feature
|
|
#
|
|
# kv-namespaces = [
|
|
# { binding = "WORKERS_GRAPHQL_CACHE", id = "" }
|
|
# ]
|
|
|
|
[build]
|
|
command = "npm install && npm run build"
|
|
|
|
[build.upload]
|
|
format = "modules"
|
|
main = "./src/index.js"
|
|
|
|
[dev]
|
|
ip = "0.0.0.0"
|
|
port = 8787
|
|
local_protocol="http"
|
|
upstream_protocol="https"
|