@onzag/itemize / Modules / server
This is the root server file and does the initialization of the server side of things
- IAppDataType
- ISEOConfig
- ISSRConfig
- IServerCustomizationDataType
- IServerDataType
- IServiceCustomizationType
- IStorageProviders
▸ app(req, res): any
Express instance itself is a request handler, which could be invoked without third argument.
| Name | Type |
|---|---|
req |
IncomingMessage | Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>> |
res |
ServerResponse | Response<any, Record<string, any>, number> |
any
node_modules/@types/express-serve-static-core/index.d.ts:1061
▸ app(req, res, next): void
| Name | Type |
|---|---|
req |
Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>> |
res |
Response<any, Record<string, any>, number> |
next |
NextFunction |
void
node_modules/@types/express-serve-static-core/index.d.ts:60
▸ getStorageProviders(config, sensitiveConfig, dbConfig, redisConfig, storageServiceProviders, registry): Promise<{ classesUsed: IServiceProviderClassType<any>[] ; cloudClients: IStorageProvidersObject ; instancesUsed: default<any>[] }>
| Name | Type |
|---|---|
config |
IConfigRawJSONDataType |
sensitiveConfig |
ISensitiveConfigRawJSONDataType |
dbConfig |
IDBConfigRawJSONDataType |
redisConfig |
IRedisConfigRawJSONDataType |
storageServiceProviders |
IStorageProviders |
registry |
RegistryService |
Promise<{ classesUsed: IServiceProviderClassType<any>[] ; cloudClients: IStorageProvidersObject ; instancesUsed: default<any>[] }>
▸ initializeServer(ssrConfig, seoConfig, custom?): Promise<void>
Initializes the itemize server with its custom configuration
| Name | Type | Description |
|---|---|---|
ssrConfig |
ISSRConfig |
the server side rendering rules |
seoConfig |
ISEOConfig |
- |
custom |
IServerCustomizationDataType |
the customization details |
Promise<void>