first commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { resolveConfig, type SdkConfig } from "@lynkd/messaging-inbox-sdk";
|
||||
|
||||
/**
|
||||
* Resolve the SDK config on the server from process.env, so feature flags and
|
||||
* theme are decided by NEXT_PUBLIC_* env at request time and handed to the
|
||||
* client as plain JSON (no dynamic env access in the browser bundle).
|
||||
*/
|
||||
export function getServerConfig(): SdkConfig {
|
||||
return resolveConfig({
|
||||
env: process.env as Record<string, string | undefined>,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user