23 lines
697 B
TOML
23 lines
697 B
TOML
name = "svelte-kit-knex-cloudflare"
|
|
main = "./.cloudflare/worker.js"
|
|
site.bucket = "./.cloudflare/public"
|
|
compatibility_date = "2024-03-02"
|
|
|
|
# compatibility_flags = [ "nodejs_compat" ]
|
|
# ^ fails with errors like
|
|
# Cannot use "fs" when deploying to Cloudflare.
|
|
|
|
node_compat = true
|
|
# ^ this doesn't work either
|
|
# which is strange because it _does_ work when not using svelte(kit)
|
|
# fails with similar same errors as above, but also more...
|
|
# such as
|
|
# Cannot use "node:string_decoder" when deploying to Cloudflare.
|
|
#
|
|
# so it's even _more_ broken because the node: prefix is _also_ broken somehow
|
|
build.command = "npm run build"
|
|
|
|
[[hyperdrive]]
|
|
binding = "DB"
|
|
id = "<redacted>"
|