Skip to content

Commit 1e2231d

Browse files
committed
use dotenv-cli instead
1 parent f0ed5fe commit 1e2231d

File tree

3 files changed

+36
-5
lines changed

3 files changed

+36
-5
lines changed

app/utils/env.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import 'dotenv/config'
21
import { z } from 'zod'
32

43
// Define server-only schema

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"type": "module",
88
"scripts": {
99
"dev": "npm-run-all --parallel dev:frontend dev:backend",
10-
"dev:frontend": "vinxi dev",
10+
"with-env": "dotenv -e ../../.env",
11+
"dev:frontend": "pnpm run with-env vinxi dev",
1112
"dev:backend": "convex dev --tail-logs",
1213
"build": "vinxi build",
1314
"start": "vinxi start",
@@ -29,11 +30,11 @@
2930
"@sentry/react": "^8.35.0",
3031
"@sentry/vite-plugin": "^2.22.6",
3132
"@tailwindcss/typography": "^0.5.13",
33+
"@tanstack/react-query": "^5.66.0",
3234
"@tanstack/react-router": "1.109.2",
3335
"@tanstack/react-router-with-query": "1.109.2",
3436
"@tanstack/router-devtools": "1.109.2",
3537
"@tanstack/start": "1.111.1",
36-
"@tanstack/react-query": "^5.66.0",
3738
"@typescript-eslint/parser": "^7.2.0",
3839
"@vercel/analytics": "^1.2.2",
3940
"@vercel/speed-insights": "^1.0.10",
@@ -73,6 +74,7 @@
7374
"@types/react-dom": "^18.3.1",
7475
"@types/remove-markdown": "^0.3.4",
7576
"autoprefixer": "^10.4.18",
77+
"dotenv-cli": "^8.0.0",
7678
"eslint": "^8.57.0",
7779
"eslint-plugin-unicorn": "^49.0.0",
7880
"npm-run-all": "^4.1.5",

pnpm-lock.yaml

Lines changed: 32 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)