Rename serverlessFunction to logicFunction (#17494)
## Summary Rename "Serverless Function" to "Logic Function" across the codebase for clearer naming. ### Environment Variable Changes | Old | New | |-----|-----| | `SERVERLESS_TYPE` | `LOGIC_FUNCTION_TYPE` | | `SERVERLESS_LAMBDA_REGION` | `LOGIC_FUNCTION_LAMBDA_REGION` | | `SERVERLESS_LAMBDA_ROLE` | `LOGIC_FUNCTION_LAMBDA_ROLE` | | `SERVERLESS_LAMBDA_SUBHOSTING_URL` | `LOGIC_FUNCTION_LAMBDA_SUBHOSTING_URL` | | `SERVERLESS_LAMBDA_ACCESS_KEY_ID` | `LOGIC_FUNCTION_LAMBDA_ACCESS_KEY_ID` | | `SERVERLESS_LAMBDA_SECRET_ACCESS_KEY` | `LOGIC_FUNCTION_LAMBDA_SECRET_ACCESS_KEY` | ### Breaking Changes - Environment variables must be updated in production deployments - Database migration renames `serverlessFunction` → `logicFunction` tables
This commit is contained in:
@@ -2,7 +2,7 @@ import {
|
||||
type PackageJson,
|
||||
type Application,
|
||||
type ObjectManifest,
|
||||
type ServerlessFunctionManifest,
|
||||
type LogicFunctionManifest,
|
||||
} from '@/application';
|
||||
import { type FrontComponentManifest } from '@/application/frontComponentManifestType';
|
||||
import { type ObjectExtensionManifest } from '@/application/objectExtensionManifestType';
|
||||
@@ -13,7 +13,7 @@ export type ApplicationManifest = {
|
||||
application: Application;
|
||||
objects: ObjectManifest[];
|
||||
objectExtensions?: ObjectExtensionManifest[];
|
||||
functions: ServerlessFunctionManifest[];
|
||||
functions: LogicFunctionManifest[];
|
||||
frontComponents: FrontComponentManifest[];
|
||||
roles?: RoleManifest[];
|
||||
sources: Sources;
|
||||
|
||||
@@ -15,17 +15,17 @@ export { DEFAULT_API_URL_NAME } from './constants/DefaultApiUrlName';
|
||||
export { SyncableEntity } from './enums/syncable-entities.enum';
|
||||
export type { FieldManifest } from './fieldManifestType';
|
||||
export type { FrontComponentManifest } from './frontComponentManifestType';
|
||||
export type {
|
||||
InputJsonSchema,
|
||||
LogicFunctionManifest,
|
||||
DatabaseEventTrigger,
|
||||
CronTrigger,
|
||||
RouteTrigger,
|
||||
LogicFunctionTriggerManifest,
|
||||
} from './logicFunctionManifestType';
|
||||
export type { ObjectExtensionManifest } from './objectExtensionManifestType';
|
||||
export type { ObjectManifest } from './objectManifestType';
|
||||
export type { PackageJson } from './packageJsonType';
|
||||
export type { RelationFieldManifest } from './relationFieldManifestType';
|
||||
export type { RoleManifest } from './roleManifestType';
|
||||
export type {
|
||||
InputJsonSchema,
|
||||
ServerlessFunctionManifest,
|
||||
DatabaseEventTrigger,
|
||||
CronTrigger,
|
||||
RouteTrigger,
|
||||
ServerlessFunctionTriggerManifest,
|
||||
} from './serverlessFunctionManifestType';
|
||||
export type { SyncableEntityOptions } from './syncableEntityOptionsType';
|
||||
|
||||
+3
-3
@@ -19,11 +19,11 @@ export type InputJsonSchema = {
|
||||
additionalProperties?: boolean | InputJsonSchema;
|
||||
};
|
||||
|
||||
export type ServerlessFunctionManifest = SyncableEntityOptions & {
|
||||
export type LogicFunctionManifest = SyncableEntityOptions & {
|
||||
name?: string;
|
||||
description?: string;
|
||||
timeoutSeconds?: number;
|
||||
triggers: ServerlessFunctionTriggerManifest[];
|
||||
triggers: LogicFunctionTriggerManifest[];
|
||||
sourceHandlerPath: string;
|
||||
builtHandlerPath: string;
|
||||
builtHandlerChecksum: string | null;
|
||||
@@ -51,5 +51,5 @@ export type RouteTrigger = {
|
||||
forwardedRequestHeaders?: string[];
|
||||
};
|
||||
|
||||
export type ServerlessFunctionTriggerManifest = SyncableEntityOptions &
|
||||
export type LogicFunctionTriggerManifest = SyncableEntityOptions &
|
||||
(CronTrigger | DatabaseEventTrigger | RouteTrigger);
|
||||
Reference in New Issue
Block a user