Skip to content

Commit

Permalink
refactor: merge server/prisma/.env to server/.env
Browse files Browse the repository at this point in the history
  • Loading branch information
solufa committed Dec 19, 2023
1 parent cecd472 commit 682542e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,5 @@ jobs:
- run: npm run generate
- run: npm run lint
- run: npm run typecheck
- run: |
cp client/.env.example client/.env
cp server/prisma/.env.example server/prisma/.env
- run: cp client/.env.example client/.env
- run: npm test
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ $ npm i --prefix server
$ cp client/.env.example client/.env
$ cp server/.env.example server/.env
$ cp docker/dev/.env.example docker/dev/.env
$ cp server/prisma/.env.example server/prisma/.env
```

### ミドルウェアのセットアップ
Expand Down
2 changes: 2 additions & 0 deletions server/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ S3_BUCKET=app
S3_ACCESS_KEY=minio
S3_SECRET_KEY=password
S3_REGION=ap-northeast-1
API_DATABASE_URL=postgresql://root:root@localhost:5432/app
TEST_DATABASE_URL=postgresql://root:root@localhost:5432/test
2 changes: 0 additions & 2 deletions server/prisma/.env.example

This file was deleted.

2 changes: 1 addition & 1 deletion server/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import dotenv from 'dotenv';
import { defineConfig } from 'vite';
import tsconfigPaths from 'vite-tsconfig-paths';

dotenv.config({ path: './prisma/.env' });
dotenv.config();

export default defineConfig({
define: { 'import.meta.vitest': false },
Expand Down

0 comments on commit 682542e

Please sign in to comment.