Skip to content

Feature/fix continue #307

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 3, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
remove dotenv as not working
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
  • Loading branch information
ShMcK committed May 3, 2020
commit 145597595ec9d1a4124e9eb438216bdd9d7f2551
10 changes: 3 additions & 7 deletions src/environment.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
require('dotenv').config({
path: './web-app/.env',
})

import { getWorkspaceRoot } from './services/workspace'
import * as os from 'os'

// CodeRoad version
export const VERSION: string = process.env.npm_package_version || 'unknown'
export const VERSION = 'unknown'

// Node env
export type Env = 'test' | 'local' | 'development' | 'production'
// @ts-ignore
export const NODE_ENV: Env = process.env.NODE_ENV || 'production'

// toggle logging in development
export const LOG: boolean = (process.env.REACT_APP_LOG || '').toLowerCase() === 'true'
export const LOG = false

// error logging tool
export const SENTRY_DSN: string | null = process.env.SENTRY_DSN || null
export const SENTRY_DSN: string | null = null

// uri path to the users project workspace
export const WORKSPACE_ROOT: string = getWorkspaceRoot()
Expand Down