This commit is contained in:
2026-04-21 20:38:00 +07:00
parent 4f74ee5e1d
commit de5bf60e73
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ services:
- "127.0.0.1:3000:3000" - "127.0.0.1:3000:3000"
environment: environment:
- NODE_ENV=production - NODE_ENV=production
- NEXT_PUBLIC_PB_URL=http:///netrunner-cms:8090 - NEXT_PUBLIC_PB_URL=https://netrunner-vpn.com/cms-api
netrunner-cms: netrunner-cms:
image: ghcr.io/muchobien/pocketbase:latest image: ghcr.io/muchobien/pocketbase:latest
+2 -2
View File
@@ -15,8 +15,8 @@ if (isServer) {
* 2. В браузере: используем публичный URL (через Nginx/SSL). * 2. В браузере: используем публичный URL (через Nginx/SSL).
*/ */
export const PB_URL = isServer export const PB_URL = isServer
? process.env.PB_INTERNAL_URL || "http:///netrunner-cms:8090" ? process.env.PB_INTERNAL_URL || "https://netrunner-vpn.com/cms-api"
: process.env.NEXT_PUBLIC_PB_URL || "http:///netrunner-cms:8090"; : process.env.NEXT_PUBLIC_PB_URL || "https://netrunner-vpn.com/cms-api";
export const pb = new PocketBase(PB_URL); export const pb = new PocketBase(PB_URL);