Signed-off-by: Max Schmidt <max.schmidt@outlook.de>
This commit is contained in:
Max Schmidt 2023-05-17 17:30:59 +02:00
parent 21fe6de0ec
commit 75e0a0192d
2 changed files with 4 additions and 5 deletions

View File

@ -1,7 +1,6 @@
import type { Post } from "../types"; import type { Post } from "../types";
const url = const url = import.meta.env.DEV
import.meta.env.NODE_ENV === "development"
? "http://payload:3001" ? "http://payload:3001"
: `https://${import.meta.env.PAYLOAD_URL}`; : `https://${import.meta.env.PAYLOAD_URL}`;

View File

@ -9,7 +9,7 @@
"build:payload": "cross-env PAYLOAD_CONFIG_PATH=src/payload.config.ts payload build", "build:payload": "cross-env PAYLOAD_CONFIG_PATH=src/payload.config.ts payload build",
"build:server": "tsc", "build:server": "tsc",
"build": "yarn build:payload && yarn build:server", "build": "yarn build:payload && yarn build:server",
"serve": "cross-env PAYLOAD_CONFIG_PATH=dist/payload.config.ts node dist/server.js", "serve": "cross-env PAYLOAD_CONFIG_PATH=dist/payload.config.js node dist/server.js",
"generate:types": "cross-env PAYLOAD_CONFIG_PATH=src/payload.config.ts payload generate:types" "generate:types": "cross-env PAYLOAD_CONFIG_PATH=src/payload.config.ts payload generate:types"
}, },
"dependencies": { "dependencies": {