feat: Allow option publicServerURL to be set dynamically as asynchronous function (#9803)
This commit is contained in:
2
types/Options/index.d.ts
vendored
2
types/Options/index.d.ts
vendored
@@ -85,7 +85,7 @@ export interface ParseServerOptions {
|
||||
cacheAdapter?: Adapter<CacheAdapter>;
|
||||
emailAdapter?: Adapter<MailAdapter>;
|
||||
encodeParseObjectInCloudFunction?: boolean;
|
||||
publicServerURL?: string;
|
||||
publicServerURL?: string | (() => string) | (() => Promise<string>);
|
||||
pages?: PagesOptions;
|
||||
customPages?: CustomPagesOptions;
|
||||
liveQuery?: LiveQueryOptions;
|
||||
|
||||
5
types/ParseServer.d.ts
vendored
5
types/ParseServer.d.ts
vendored
@@ -26,6 +26,11 @@ declare class ParseServer {
|
||||
* @returns {Promise<void>} a promise that resolves when the server is stopped
|
||||
*/
|
||||
handleShutdown(): Promise<void>;
|
||||
/**
|
||||
* @static
|
||||
* Allow developers to customize each request with inversion of control/dependency injection
|
||||
*/
|
||||
static applyRequestContextMiddleware(api: any, options: any): void;
|
||||
/**
|
||||
* @static
|
||||
* Create an express app for the parse server
|
||||
|
||||
Reference in New Issue
Block a user