Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion crates/site-app/src/pages/logout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ pub fn LogoutButton() -> impl IntoView {

#[server(prefix = "/api/sfn")]
pub async fn logout() -> Result<(), ServerFnError> {
let mut auth_session = expect_context::<auth_domain::AuthSession>();
let Some(mut auth_session) = use_context::<auth_domain::AuthSession>() else {
return Ok(());
};

match auth_session.logout().await {
Ok(_) => Ok(()),
Err(e) => {
Expand Down
11 changes: 2 additions & 9 deletions fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,12 @@ swap_size_mb = 2048
image = 'grid:latest'

[http_service]
auto_start_machines = true
auto_stop_machines = "stop"
auto_start_machines = false
auto_stop_machines = "off"
internal_port = 3000
min_machines_running = 0
# axum is http2-enabled
http_options.h2_backend = true

[[http_service.checks]]
grace_period = "8s"
interval = "30s"
method = "GET"
path = "/api/v1/health"
timeout = "5s"

[[vm]]
size = 'shared-cpu-1x'