Skip to content

Commit dcb8ec9

Browse files
committed
fix: dotenvのインポート位置を修正し、環境変数の設定を適切に行う
1 parent ae02a04 commit dcb8ec9

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"@types/react-dom": "18.3.0",
1919
"autoprefixer": "10.4.19",
2020
"axios": "^1.7.2",
21+
"dotenv": "^16.5.0",
2122
"framer-motion": "^11.1.9",
2223
"next": "^14.2.23",
2324
"next-auth": "^5.0.0-beta.27",

frontend/src/util/cosmos/account.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { CosmosClient } from "@azure/cosmos";
22
import { AccountItem } from "../../models/models";
3-
3+
import dotenv from "dotenv";
4+
dotenv.config();
45
/**
56
* categoryを全取得する
67
* @returns - カテゴリの配列

0 commit comments

Comments
 (0)