fix: fix env file for docker compose
This commit is contained in:
+4
-2
@@ -5,7 +5,6 @@ use crate::auth::middleware::auth_middleware;
|
||||
|
||||
use axum::extract::Extension;
|
||||
use axum::{Router, middleware, routing::get};
|
||||
use dotenvy::dotenv;
|
||||
use std::net::SocketAddr;
|
||||
|
||||
pub async fn protected_route(Extension(claims): Extension<Claims>) -> String {
|
||||
@@ -33,7 +32,10 @@ pub fn app() -> Router {
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
dotenv().ok();
|
||||
#[cfg(debug_assertions)]
|
||||
{
|
||||
dotenvy::dotenv().ok();
|
||||
}
|
||||
|
||||
// let jwks = keycloak::get_jwks()
|
||||
// .await
|
||||
|
||||
Reference in New Issue
Block a user