Skip to content

Commit

Permalink
refactor: rename env.API_DATABASE_URL to env.DATABASE_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
solufa committed Jan 28, 2024
1 parent a24a450 commit 67c2db4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Next frourio starter

フロントエンドは src ディレクトリの [Next.js](https://nextjs.org/) 、バックエンドは server ディレクトリの [frourio](https://frourio.com/) で構築された TypeScript で一気通貫開発が可能なモノレポサービス
フロントエンドは client ディレクトリの [Next.js](https://nextjs.org/) 、バックエンドは server ディレクトリの [frourio](https://frourio.com/) で構築された TypeScript で一気通貫開発が可能なモノレポサービス

最新のコミットによるデモ - https://solufa.github.io/next-frourio-starter/

Expand Down
2 changes: 1 addition & 1 deletion server/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +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
DATABASE_URL=postgresql://root:root@localhost:5432/app
TEST_DATABASE_URL=postgresql://root:root@localhost:5432/test
2 changes: 1 addition & 1 deletion server/prisma/schema.prisma
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
datasource db {
provider = "postgresql"
url = env("API_DATABASE_URL")
url = env("DATABASE_URL")
}

generator client {
Expand Down
2 changes: 1 addition & 1 deletion server/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default defineConfig({
define: { 'import.meta.vitest': false },
plugins: [tsconfigPaths()],
test: {
env: { API_DATABASE_URL: process.env.TEST_DATABASE_URL ?? '' },
env: { DATABASE_URL: process.env.TEST_DATABASE_URL ?? '' },
setupFiles: ['tests/setup.ts'],
includeSource: ['**/*.ts'],
// include: ['**/index.test.ts'],
Expand Down

0 comments on commit 67c2db4

Please sign in to comment.