Disable hotreloading in prod
This commit is contained in:
4
main.c
4
main.c
@ -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)
|
||||
|
Reference in New Issue
Block a user