Skip to content

Commit 593b011

Browse files
author
vladyslav.kulakov
committed
refactor(env): changed env file
1 parent 6213b8b commit 593b011

File tree

14 files changed

+26
-23
lines changed

14 files changed

+26
-23
lines changed

generators/prisma-casl/templates/mongodb/jwt/.env

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB.
55
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings
66

7-
SERVER_PORT=3000
8-
7+
SERVER_PORT=<%= config.serverPort %>
98

109
MONGO_USERNAME="test"
1110
MONGO_PASSWORD="test"

generators/prisma-casl/templates/mongodb/oauth2/.env

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
SERVER_PORT=3000
2-
SERVER_HOST=http://localhost:3000
1+
SERVER_PORT=<%= config.serverPort %>
2+
SERVER_HOST=<%= config.serverHost %>:<%= config.serverPort %>
33

4-
OAUTH2_GOOGLE_CLIENT_SECRET=456
5-
OAUTH2_GOOGLE_CLIENT_ID=123
6-
OAUTH2_GOOGLE_CALLBACK_URL=http://localhost:3000/google/redirect
4+
OAUTH2_GOOGLE_CLIENT_SECRET=<%= config.oauth2ClientSecret %>
5+
OAUTH2_GOOGLE_CLIENT_ID=<%= config.oauth2ClientId %>
6+
OAUTH2_GOOGLE_CALLBACK_URL=<%= config.oauth2CallbackUrl %>
7+
8+
PASSPORT_SESSION_SECRET=<%= config.passportSessionSecret %>
79

810
DATABASE_URL="mongodb+srv://test:test@test.erkwlmq.mongodb.net/%3FretryWrites=true&w=majority"
911

generators/prisma-casl/templates/mongodb/passportLocal/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
SERVER_PORT=5000
1+
SERVER_PORT=<%= config.serverPort %>
22

33
DATABASE_URL=mongodb+srv://test:test@test.erkwlmq.mongodb.net/%3FretryWrites=true&w=majority
44

generators/prisma-casl/templates/mysql/jwt/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB.
55
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings
66

7-
SERVER_PORT=3000
7+
SERVER_PORT=<%= config.serverPort %>
88

99
MYSQL_ROOT_USER=root
1010
MYSQL_PASSWORD=1234

generators/prisma-casl/templates/mysql/oauth2/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB.
55
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings
66

7-
SERVER_PORT=3000
7+
SERVER_PORT=<%= config.serverPort %>
88

99
MYSQL_ROOT_USER=root
1010
MYSQL_PASSWORD=1234

generators/prisma-casl/templates/mysql/passportLocal/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB.
55
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings
66

7-
SERVER_PORT=3000
7+
SERVER_PORT=<%= config.serverPort %>
88

99
MYSQL_ROOT_USER=root
1010
MYSQL_PASSWORD=1234

generators/prisma-casl/templates/postgresql/jwt/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB.
55
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings
66

7-
SERVER_PORT=3000
7+
SERVER_PORT=<%= config.serverPort %>
88

99
POSTGRESQL_ROOT_USER=postgres
1010
POSTGRESQL_PASSWORD=postgres

generators/prisma/templates/mongodb/jwt/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB.
55
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings
66

7-
SERVER_PORT=3000
7+
SERVER_PORT=<%= config.serverPort %>
88

99
DATABASE_URL="mongodb+srv://test:test@test.erkwlmq.mongodb.net/%3FretryWrites=true&w=majority"
1010

generators/prisma/templates/mongodb/oauth2/.env

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
SERVER_PORT=3000
2-
SERVER_HOST=http://localhost:3000
1+
SERVER_PORT=<%= config.serverPort %>
2+
SERVER_HOST=<%= config.serverHost %>:<%= config.serverPort %>
33

4-
OAUTH2_GOOGLE_CLIENT_SECRET=456
5-
OAUTH2_GOOGLE_CLIENT_ID=123
6-
OAUTH2_GOOGLE_CALLBACK_URL=http://localhost:3000/google/redirect
4+
OAUTH2_GOOGLE_CLIENT_SECRET=<%= config.oauth2ClientSecret %>
5+
OAUTH2_GOOGLE_CLIENT_ID=<%= config.oauth2ClientId %>
6+
OAUTH2_GOOGLE_CALLBACK_URL=<%= config.oauth2CallbackUrl %>
7+
8+
PASSPORT_SESSION_SECRET=<%= config.passportSessionSecret %>
79

810
DATABASE_URL="mongodb+srv://test:test@test.erkwlmq.mongodb.net/%3FretryWrites=true&w=majority"
911

generators/prisma/templates/mongodb/passportLocal/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
SERVER_PORT=5000
1+
SERVER_PORT=<%= config.serverPort %>
22

33
DATABASE_URL=mongodb+srv://test:test@test.erkwlmq.mongodb.net/%3FretryWrites=true&w=majority
44

0 commit comments

Comments
 (0)