WIP frontend isn't completely broken now
Still more work left with integrating apalis and need to fully update it. These changes are mostly for fixing the frontend I broke by eagerly updating everything.
This commit is contained in:
@@ -19,7 +19,6 @@ use dotenvy::dotenv;
|
||||
use fred::prelude::*;
|
||||
use lettre::transport::smtp::authentication::Credentials;
|
||||
use lettre::SmtpTransport;
|
||||
use notify::Watcher;
|
||||
use reqwest::Client;
|
||||
use sqlx::postgres::PgPoolOptions;
|
||||
use time::Duration;
|
||||
@@ -27,7 +26,6 @@ use tokio::sync::watch::channel;
|
||||
use tokio::sync::Mutex;
|
||||
use tower::ServiceBuilder;
|
||||
use tower_http::{services::ServeDir, trace::TraceLayer};
|
||||
use tower_livereload::LiveReloadLayer;
|
||||
use tower_sessions::cookie::Key;
|
||||
use tower_sessions_redis_store::{
|
||||
fred::{
|
||||
@@ -193,6 +191,8 @@ async fn main() -> Result<()> {
|
||||
.layer(ip_source_extension);
|
||||
|
||||
if cfg!(debug_assertions) {
|
||||
use notify::Watcher;
|
||||
use tower_livereload::LiveReloadLayer;
|
||||
debug!("starting livereload");
|
||||
let livereload = LiveReloadLayer::new().request_predicate(not_htmx_predicate);
|
||||
let reloader = livereload.reloader();
|
||||
|
||||
Reference in New Issue
Block a user