Disable hotreloading in prod

This commit is contained in:
kamkow1
2025-06-20 01:09:16 +02:00
parent 540b3a1567
commit edc039db6e
11 changed files with 36 additions and 29 deletions

4
main.c
View File

@ -87,12 +87,14 @@ void event_handler(struct mg_connection *conn, int ev, void *ev_data)
void init_route_hashtable(void)
{
shdefault(route_hashtable, &route_page_not_found);
shput(route_hashtable, "/", &route_home);
shput(route_hashtable, "/page-missing", &route_page_not_found);
shput(route_hashtable, "/simple.css", &route_simple_css);
shput(route_hashtable, "/favicon.ico", &route_favicon);
#if MY_DEBUG
shput(route_hashtable, "/hotreload.js", &route_hotreload_js);
shput(route_hashtable, "/", &route_home);
shput(route_hashtable, "/build-id", &route_build_id);
#endif
shput(route_hashtable, "/blog", &route_blog);
void put_blogs(Baked_Resource *resource)