# Put assets (fonts)
wrangler r2 bucket create owari-shop
wrangler r2 object put owari-shop/font.ttf --file="static/Koruri-Extrabold.ttf"
# Deploy
wrangler publish
# Or develop locally
wrangler dev
Edit wrangler.toml
to configure your project.
https://developers.cloudflare.com/workers/cli-wrangler/configuration
WORKERS_RS_VERSION
- The version of theworkers-rs
crate to use. Defaults to0.0.16
.WILDCARDSUBDOMAIN_DOMAIN
- The domain to use for the wildcard subdomain. Defaults toowari.shop
.WILDCARDSUBDOMAIN_FONT
- The path to favicon's font file in bucket. Defaults toKoruri-Extrabold.ttf
.WILDCARDSUBDOMAIN_TOP_HALF_TEXT
- The text to display in the top half of favicon. Defaults toおわ
.WILDCARDSUBDOMAIN_BOTTOM_HALF_TEXT
- The text to display in the bottom half of favicon. Defaults toりや
.WILDCARDSUBDOMAIN_ICO_HEIGHT
,WILDCARDSUBDOMAIN_ICO_WIDTH
WILDCARDSUBDOMAIN_PNG_HEIGHT
WILDCARDSUBDOMAIN_PNG_WIDTH
- The height and width of favicon. Defaults to256
.WILDCARDSUBDOMAIN_BACKGROUND_COLOR
- The background color of favicon. Defaults to#c0c0c0ff
.WILDCARDSUBDOMAIN_FONT_COLOR
- The text color of favicon. Defaults to#000000ff
.
vars = { WORKERS_RS_VERSION = "0.0.16", WILDCARDSUBDOMAIN_DOMAIN = "owari.shop" }
routes = [
"owari.shop/*",
"*.owari.shop/*",
]
Read the latest worker
crate documentation here: https://docs.rs/worker