mirror of
https://gitlab.com/mobicoop/v3/service/configuration.git
synced 2026-01-11 15:12:39 +00:00
11 lines
283 B
TypeScript
11 lines
283 B
TypeScript
import { registerAs } from '@nestjs/config';
|
|
import { Config } from './config';
|
|
|
|
export interface PaginationConfig extends Config {
|
|
perPage: number;
|
|
}
|
|
|
|
export default registerAs('pagination', () => ({
|
|
perPage: process.env.PER_PAGE ? parseInt(process.env.PER_PAGE, 10) : 10,
|
|
}));
|