diff --git a/crates/superposition/src/main.rs b/crates/superposition/src/main.rs index b5e70a85..97c482d7 100644 --- a/crates/superposition/src/main.rs +++ b/crates/superposition/src/main.rs @@ -1,4 +1,5 @@ use actix_web::dev::Service; +use actix_web::middleware::Compress; use actix_web::web::PathConfig; use actix_web::HttpMessage; use actix_web::{web, web::get, web::scope, web::Data, App, HttpResponse, HttpServer}; @@ -155,6 +156,7 @@ async fn main() -> Result<()> { let leptos_envs = ui_envs.clone(); let cac_host = cac_host.to_owned() + base.as_str(); App::new() + .wrap(Compress::default()) .wrap_fn(|req, srv| { let user = User::default(); req.extensions_mut().insert::(user); diff --git a/docker-compose.yaml b/docker-compose.yaml index a2580adc..fe02984f 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -13,7 +13,7 @@ services: network_mode: bridge localstack: - build : ./docker-compose/localstack/ + build: ./docker-compose/localstack/ container_name: superposition_localstack ports: - "4510-4559:4510-4559" # external service port range @@ -24,3 +24,16 @@ services: LOCALSTACK_SERVICES: s3, sns, sqs, logs, cloudwatch, kms AWS_DEFAULT_REGION: ap-south-1 EDGE_PORT: 4566 + + # app: + # image: superposition_github:latest + # container_name: superposition_app + # ports: + # - "8080:8080" + # env_file: + # - .env + # depends_on: + # - postgres + # - localstack + # network_mode: bridge + # restart: on-failure \ No newline at end of file diff --git a/makefile b/makefile index 1b8f658f..158fba1c 100644 --- a/makefile +++ b/makefile @@ -106,7 +106,7 @@ superposition_dev: frontend: cd crates/frontend && \ - wasm-pack build --target=web --debug --no-default-features --features=hydrate + wasm-pack build --target web --dev --no-default-features --features hydrate cd crates/frontend && \ npx tailwindcss -i ./styles/tailwind.css -o ./pkg/style.css -rm -rf target/site