@@ -47,52 +47,52 @@ pub async fn serve_frontend(url: Url, api_public_url: Url, node_url: String) ->
4747}
4848
4949pub async fn get_index_html ( ) -> Html < & ' static str > {
50- Html ( include_str ! ( concat!( env!( "CARGO_MANIFEST_DIR " ) , "/frontend/index.html" ) ) )
50+ Html ( include_str ! ( concat!( env!( "OUT_DIR " ) , "/frontend/index.html" ) ) )
5151}
5252
5353pub async fn get_miden_client_web_wasm ( ) -> Response {
5454 (
5555 [ ( header:: CONTENT_TYPE , header:: HeaderValue :: from_static ( "application/wasm" ) ) ] ,
5656 include_bytes ! ( concat!(
57- env!( "CARGO_MANIFEST_DIR " ) ,
57+ env!( "OUT_DIR " ) ,
5858 "/frontend/node_modules/@demox-labs/miden-sdk/dist/assets/miden_client_web.wasm"
5959 ) , ) ,
6060 )
6161 . into_response ( )
6262}
6363
6464pub async fn get_not_found_html ( ) -> Html < & ' static str > {
65- Html ( include_str ! ( concat!( env!( "CARGO_MANIFEST_DIR " ) , "/frontend/not_found.html" ) ) )
65+ Html ( include_str ! ( concat!( env!( "OUT_DIR " ) , "/frontend/not_found.html" ) ) )
6666}
6767
6868pub async fn get_bundle_js ( ) -> JavaScript < & ' static str > {
69- JavaScript ( include_str ! ( concat!( env!( "CARGO_MANIFEST_DIR " ) , "/frontend/bundle.js" ) ) )
69+ JavaScript ( include_str ! ( concat!( env!( "OUT_DIR " ) , "/frontend/bundle.js" ) ) )
7070}
7171
7272pub async fn get_index_css ( ) -> Css < & ' static str > {
73- Css ( include_str ! ( concat!( env!( "CARGO_MANIFEST_DIR " ) , "/frontend/index.css" ) ) )
73+ Css ( include_str ! ( concat!( env!( "OUT_DIR " ) , "/frontend/index.css" ) ) )
7474}
7575
7676pub async fn get_background ( ) -> Response {
7777 (
7878 [ ( header:: CONTENT_TYPE , header:: HeaderValue :: from_static ( "image/png" ) ) ] ,
79- include_bytes ! ( concat!( env!( "CARGO_MANIFEST_DIR " ) , "/frontend/background.png" ) , ) ,
79+ include_bytes ! ( concat!( env!( "OUT_DIR " ) , "/frontend/background.png" ) , ) ,
8080 )
8181 . into_response ( )
8282}
8383
8484pub async fn get_wallet_icon ( ) -> Response {
8585 (
8686 [ ( header:: CONTENT_TYPE , header:: HeaderValue :: from_static ( "image/png" ) ) ] ,
87- include_bytes ! ( concat!( env!( "CARGO_MANIFEST_DIR " ) , "/frontend/wallet-icon.png" ) , ) ,
87+ include_bytes ! ( concat!( env!( "OUT_DIR " ) , "/frontend/wallet-icon.png" ) , ) ,
8888 )
8989 . into_response ( )
9090}
9191
9292pub async fn get_favicon ( ) -> Response {
9393 (
9494 [ ( header:: CONTENT_TYPE , header:: HeaderValue :: from_static ( "image/x-icon" ) ) ] ,
95- include_bytes ! ( concat!( env!( "CARGO_MANIFEST_DIR " ) , "/frontend/favicon.ico" ) , ) ,
95+ include_bytes ! ( concat!( env!( "OUT_DIR " ) , "/frontend/favicon.ico" ) , ) ,
9696 )
9797 . into_response ( )
9898}
0 commit comments