File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -166,6 +166,11 @@ import Connect from "../components/Connect.astro";
166166 });
167167</script >
168168<script >
169- import sdk from "@farcaster/miniapp-sdk";
170- sdk.actions.ready();
169+ // Load asynchronously
170+ async function miniappInit() {
171+ const sdk = await import("@farcaster/miniapp-sdk");
172+ sdk.default.actions.ready();
173+ }
174+
175+ miniappInit();
171176</script >
Original file line number Diff line number Diff line change 331331 ) access . paths
332332 ) )
333333 {
334- "${ cfg . nginxConfig . subpath } " = {
335- proxyPass = "http://127.0.0.1:${ builtins . toString cfg . port } " ;
334+ "${ cfg . nginxConfig . subpath } /" = {
335+ alias = "${ xnode-auth } /share/client/" ;
336+ } ;
337+ "${ cfg . nginxConfig . subpath } /_astro/" = {
338+ alias = "${ xnode-auth } /share/client/_astro/" ;
339+ extraConfig = ''
340+ add_header Cache-Control "public, max-age=31536000, immutable";
341+ '' ;
342+ } ;
343+ "${ cfg . nginxConfig . subpath } /api" = {
344+ proxyPass = "http://127.0.0.1:${ builtins . toString cfg . port } ${ cfg . nginxConfig . subpath } /api" ;
336345 extraConfig = ''
337346 proxy_set_header Host $server_name;
338347 '' ;
You can’t perform that action at this time.
0 commit comments