Files
passkit-generator/examples/cloudflare-worker/wrangler.toml
2025-01-11 16:20:52 +01:00

67 lines
2.5 KiB
TOML

name = "pg-cw-example"
main = "src/index.ts"
#########################################################################################
# This must be enabled to make passkit-generator compatible with cloudflare workers #
#########################################################################################
compatibility_flags = [ "nodejs_compat" ]
compatibility_date = "2024-09-23"
###################################################################
### This is needed to import `.png` files with esm imports. ###
###################################################################
rules = [
{ type = "Data", globs = ["**/*.png"], fallthrough = true }
]
########################################################################################################
# These are some envs. These should actually be secrets, but for the sake of the #
# example, we are going to put these here. #
# #
# Remember to postfix every certificate line with "\", for TOML requirement for multiline strings. #
# See: https://toml.io/en/ #
# #
# E.g. #
# #
# WWDR = """ \ #
# -----BEGIN CERTIFICATE----- \ #
# MIIEVTCCAz2gAwIBAgIUE9x3lVJx5T3GMujM/+Uh88zFztIwDQYJKoZIhvcNAQEL \ #
# ... #
########################################################################################################
[vars]
WWDR = """ \
"""
SIGNER_CERT = """ \
"""
SIGNER_KEY = """ \
"""
SIGNER_PASSPHRASE = ""
# DEFAULTS explanations
# Variable bindings. These are arbitrary, plaintext strings (similar to environment variables)
# Note: Use secrets to store sensitive data.
# Docs: https://developers.cloudflare.com/workers/platform/environment-variables
# [vars]
# MY_VARIABLE = "production_value"