fix: FIFO queue for waitlisting; send email for application form; EU logo in contact page in light mode
This commit is contained in:
@@ -19,6 +19,7 @@ const DEFAULT_TIMEOUT_MS = 10_000;
|
||||
export interface StrapiWriteInit {
|
||||
readonly timeoutMs?: number;
|
||||
readonly signal?: AbortSignal;
|
||||
readonly forwardedFor?: string;
|
||||
}
|
||||
|
||||
interface StrapiErrorEnvelope {
|
||||
@@ -49,6 +50,7 @@ export async function createStrapiEntry<T>(
|
||||
accept: "application/json",
|
||||
};
|
||||
if (env.STRAPI_TOKEN) headers.authorization = `Bearer ${env.STRAPI_TOKEN}`;
|
||||
if (init.forwardedFor) headers["x-forwarded-for"] = init.forwardedFor;
|
||||
|
||||
const timeoutMs = init.timeoutMs ?? DEFAULT_TIMEOUT_MS;
|
||||
const timeoutSignal = AbortSignal.timeout(timeoutMs);
|
||||
|
||||
Reference in New Issue
Block a user