Skip to content
Snippets Groups Projects
Commit d4fef314 authored by Bernard Roland (Student Com20)'s avatar Bernard Roland (Student Com20)
Browse files

The environment config is now loaded from NODE_ENV

parent be91d529
No related branches found
No related tags found
No related merge requests found
import { env } from 'process';
export const port = 8000; export const port = 8000;
export const keys = { export const keys = {
...@@ -10,5 +12,5 @@ export const headers = { ...@@ -10,5 +12,5 @@ export const headers = {
'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Origin': '*',
}; };
export const environment = "development"; export const environment = (env.NODE_ENV ?? 'development') as ('development' | 'staging' | 'production');
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment