test
Signed-off-by: Max Schmidt <max.schmidt@outlook.de>
This commit is contained in:
parent
21fe6de0ec
commit
75e0a0192d
@ -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}`;
|
||||||
|
|
||||||
|
@ -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": {
|
||||||
|
Loading…
Reference in New Issue
Block a user