leon
leon
Explore posts from servers
HHono
Created by leon on 3/7/2025 in #help
static files 404 when in subdirectory of assets
i have no idea, but i think whatever node version you use locally, is matched on wrangler deploy as i was having the same issues when the app was deployed
12 replies
CDCloudflare Developers
Created by leon on 3/7/2025 in #workers-help
hono static files return 404 in wrangler dev and worker when in subdirectory of assets folder
i have fixed the issue. i was running node v18.14.1, but have now updated to lts v22.14.0. all static files are now served. perhaps a minimum node version check should be introduced into hono, i cannot see mention of it on the hono site (could have very well missed it)
2 replies
HHono
Created by leon on 3/7/2025 in #help
static files 404 when in subdirectory of assets
i have fixed the issue. i was running node v18.14.1, but have now updated to lts v22.14.0. all static files are now served. perhaps a minimum node version check should be introduced into hono, i cannot see mention of it on the hono site (could have very well missed it)
12 replies
HHono
Created by leon on 3/7/2025 in #help
static files 404 when in subdirectory of assets
i have not changed the example at all from the example in the github repo, so it is just odd that the example is not working
12 replies
HHono
Created by leon on 3/7/2025 in #help
static files 404 when in subdirectory of assets
wrangler.toml
name = "hono-example-basic"
compatibility_date = "2024-09-19"

assets = { directory = "./assets/" }
name = "hono-example-basic"
compatibility_date = "2024-09-19"

assets = { directory = "./assets/" }
12 replies
HHono
Created by leon on 3/7/2025 in #help
static files 404 when in subdirectory of assets
No description
12 replies