Skip to content

Commit

Permalink
DVC-6240 prefix env keys with NX (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolasleblanc authored Feb 21, 2023
1 parent d83d9de commit 14ce15d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/js/web-elements-app/src/app/app.element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import './app.element.css'
import { initialize } from '@devcycle/devcycle-js-sdk'

const SDK_KEY = process.env['DVC_CLIENT_SDK_KEY'] || '<YOUR_DVC_CLIENT_SDK_KEY>'
const SDK_KEY = process.env.NX_DVC_CLIENT_SDK_KEY || '<YOUR_DVC_CLIENT_SDK_KEY>'

export class AppElement extends HTMLElement {
constructor() {
Expand Down
2 changes: 1 addition & 1 deletion examples/react/next-js-app/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react'
import type { AppProps } from 'next/app'
import { withDVCProvider } from '@devcycle/devcycle-react-sdk'

const SDK_KEY = process.env.DVC_CLIENT_SDK_KEY || '<YOUR_DVC_CLIENT_SDK_KEY>'
const SDK_KEY = process.env.NX_DVC_CLIENT_SDK_KEY || '<YOUR_DVC_CLIENT_SDK_KEY>'
const user = {
user_id: 'userId1',
email: 'auto@taplytics.com',
Expand Down
2 changes: 1 addition & 1 deletion examples/react/react-native-app/src/app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import Heart from './icons/heart.svg'

global.DeviceInfo = DeviceInfo

const SDK_KEY = process.env['DVC_CLIENT_SDK_KEY'] || '<YOUR_DVC_CLIENT_SDK_KEY>'
const SDK_KEY = process.env.NX_DVC_CLIENT_SDK_KEY || '<YOUR_DVC_CLIENT_SDK_KEY>'
const VARIABLE_KEY = 'test_variable_key'
const DEFAULT_VALUE = false

Expand Down
2 changes: 1 addition & 1 deletion examples/react/with-async-provider/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import App from './App'
import { asyncWithDVCProvider } from '@devcycle/devcycle-react-sdk';

(async () => {
const SDK_KEY = process.env['DVC_CLIENT_SDK_KEY'] || '<YOUR_DVC_CLIENT_SDK_KEY>'
const SDK_KEY = process.env.NX_DVC_CLIENT_SDK_KEY || '<YOUR_DVC_CLIENT_SDK_KEY>'
const user = {
user_id: 'userId1',
email: 'auto@taplytics.com',
Expand Down
2 changes: 1 addition & 1 deletion examples/react/with-provider/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import './App.css'
import { useIsDVCInitialized, withDVCProvider } from '@devcycle/devcycle-react-sdk'
import DevCycleExample from './DevCycleExample'

const SDK_KEY = process.env['DVC_CLIENT_SDK_KEY'] || '<YOUR_DVC_CLIENT_SDK_KEY>'
const SDK_KEY = process.env.NX_DVC_CLIENT_SDK_KEY || '<YOUR_DVC_CLIENT_SDK_KEY>'
const user = {
user_id: 'userId1',
email: 'auto@taplytics.com',
Expand Down

4 comments on commit 14ce15d

@vercel
Copy link

@vercel vercel bot commented on 14ce15d Feb 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 14ce15d Feb 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 14ce15d Feb 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 14ce15d Feb 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

js-sdks-next-js – ./

js-sdks-next-js-taplytics.vercel.app
js-sdks-next-js-git-main-taplytics.vercel.app
dvc-nextjs.vercel.app

Please sign in to comment.