landing url to cms fixes
This commit is contained in:
+1
-1
@@ -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=https://netrunner-vpn.com/cms
|
- NEXT_PUBLIC_PB_URL=http:///netrunner-cms:8090
|
||||||
|
|
||||||
netrunner-cms:
|
netrunner-cms:
|
||||||
image: ghcr.io/muchobien/pocketbase:latest
|
image: ghcr.io/muchobien/pocketbase:latest
|
||||||
|
|||||||
@@ -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://127.0.0.1:8090"
|
? process.env.PB_INTERNAL_URL || "http:///netrunner-cms:8090"
|
||||||
: process.env.NEXT_PUBLIC_PB_URL || "https://netrunner-vpn.com/cms";
|
: process.env.NEXT_PUBLIC_PB_URL || "http:///netrunner-cms:8090";
|
||||||
|
|
||||||
export const pb = new PocketBase(PB_URL);
|
export const pb = new PocketBase(PB_URL);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user