breaking: remove POSTGRES prefix env variables in favor of DATABASE prefix (#8672)

This commit is contained in:
Harminder Virk
2024-08-20 17:05:19 +05:30
committed by GitHub
parent cfdd056d70
commit 5f310c0a00
7 changed files with 38 additions and 46 deletions
@@ -53,7 +53,6 @@ module.exports = defineConfig({
workerMode: process.env.MEDUSA_WORKER_MODE,
},
})
```
Later, youll set different values of the `MEDUSA_WORKER_MODE` environment variable for each Medusa application deployment.
@@ -80,7 +79,6 @@ module.exports = defineConfig({
disable: process.env.DISABLE_MEDUSA_ADMIN === "true",
},
})
```
Later, youll set different values of the `DISABLE_MEDUSA_ADMIN` environment variable.
@@ -96,7 +94,6 @@ module.exports = defineConfig({
redisUrl: process.env.REDIS_URL,
},
})
```
---
@@ -150,13 +147,13 @@ module.exports = defineConfig({
// ...
[Modules.CACHE]: {
resolve: "@medusajs/cache-redis",
options: {
options: {
redisUrl: process.env.REDIS_URL,
},
},
[Modules.EVENT_BUS]: {
resolve: "@medusajs/event-bus-redis",
options: {
options: {
redisUrl: process.env.REDIS_URL,
},
},
@@ -240,7 +237,6 @@ DISABLE_MEDUSA_ADMIN=true
MEDUSA_WORKER_MODE=worker
PORT=9000
DATABASE_URL=${{Postgres.DATABASE_PUBLIC_URL}}
POSTGRES_URL=${{Postgres.DATABASE_PUBLIC_URL}}
REDIS_URL=${{Redis.REDIS_PUBLIC_URL}}
```
@@ -279,7 +275,7 @@ You can either generate a random domain name or set a custom one. To do that:
2. Choose the Settings tab.
3. Scroll down to the Networking section.
4. Under Public Networking, click on Generate domain to generate a domain name or Custom domain to add your custom domain.
1. Choose the `9000` port.
1. Choose the `9000` port.
5. Save the changes.
### Additional Configuration if Deploying with Admin
@@ -349,7 +345,6 @@ DISABLE_MEDUSA_ADMIN=false
MEDUSA_WORKER_MODE=worker
PORT=9000
DATABASE_URL=${{Postgres.DATABASE_PUBLIC_URL}}
POSTGRES_URL=${{Postgres.DATABASE_PUBLIC_URL}}
REDIS_URL=${{Redis.REDIS_PUBLIC_URL}}
```