ternSecureInstrumentation()
create instrumentation.ts in your root directory.
Note
ternSecureInstrumentation() intercept firebase requests to add referer in the header. so firebaseServerApp wont throw auth/refer-empty error.
import { ternSecureInstrumentation } from "@tern-secure/nextjs/server";
export async function register() {
if (process.env.NEXT_RUNTIME === "nodejs") {
ternSecureInstrumentation();
}
}Last updated on