summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/EnvService.ts
blob: 8cc3b95735fa92ef4520c65ab8c7ed5074ca7764 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * SPDX-FileCopyrightText: hazelnoot and other Sharkey contributors
 * SPDX-License-Identifier: AGPL-3.0-only
 */

import { Injectable } from '@nestjs/common';

/**
 * Provides access to the process environment variables.
 * This exists for testing purposes, so that a test can mock the environment without corrupting state for other tests.
 */
@Injectable()
export class EnvService {
	/**
	 * Passthrough to process.env
	 */
	public get env() {
		return process.env;
	}
}