Skip to content

Commit

Permalink
Merge pull request #1 from adrianfocke/setup-changes
Browse files Browse the repository at this point in the history
Add env checker that is already there
  • Loading branch information
adrianfocke authored Mar 16, 2024
2 parents c9116b2 + a22a3bf commit 6aa649d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ For more info, check the detailed section.

## Get Started

Create a .env file and add required environment variables:

```
TINA_URL="http://localhost:4001/graphql"
```

Inside the project folder open a terminal and execute the following code to install it's dependencies and run the dev server:

```
Expand Down
2 changes: 1 addition & 1 deletion content/files/TestFile.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Audit
name: Auditerl
entity: content/entities/audits/ÖBB_PV 27001 z 2024.json
skeleton: /skeletons/Auditplan.docx
---
Expand Down
2 changes: 1 addition & 1 deletion utils/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const PLACEHOLDER_REGEX = /{{field_[a-zA-Z0-9]+(?:_[a-zA-Z0-9]+)*}}/g;
export const LETTERS_NUMBERS_HYPEN_BLANK_REGEX = /^[a-zA-Z0-9-\s]+$/;

export const IS_RUNNING_LOCALLY =
process.env.NEXT_PUBLIC_TINA_URL?.includes('localhost');
!!process && process.env.NODE_ENV === 'development';

export const SUPABASE_CLIENT = process.env.NEXT_PUBLIC_SUPABASE_URL && process.env.NEXT_PUBLIC_SUPABASE_KEY ? createClient(
process.env.NEXT_PUBLIC_SUPABASE_URL,
Expand Down

0 comments on commit 6aa649d

Please sign in to comment.