Closed arkmech closed 4 months ago
svelte.config.js
@sveltejs/adapter-node
vite build
@t3-oss/env-core
./src/env.ts
createEnv
env.ts
./src/lib/server/index.ts
./src/lib/server/payload/payload.config.ts
cross-env PAYLOAD_CONFIG_PATH=./src/payload.config.ts tsx watch ./src/lib/server/index.ts
I have just had lots of issues doing this an example repo would be nice.
svelte.config.js
, using@sveltejs/adapter-node
as adapter.vite build
, generates build directory with SvelteKit handlers@t3-oss/env-core
./src/env.ts
, wherecreateEnv
is setup.env.ts
:./src/lib/server/index.ts
(express server) and./src/lib/server/payload/payload.config.ts
,cross-env PAYLOAD_CONFIG_PATH=./src/payload.config.ts tsx watch ./src/lib/server/index.ts
I have just had lots of issues doing this an example repo would be nice.