Adjusted the condition for standalone mode to correctly check for
`adminOptions` when `serveStatic` is not enabled, ensuring the warning
message is displayed appropriately.
Updated the `getApi` call to pass optional headers when available,
allowing for authenticated API requests with custom headers.