fix: drafts page uses server-side API routes (no NEXT_PUBLIC needed)

This commit is contained in:
Nik (Claude)
2026-06-16 22:21:52 +03:00
parent 4198633526
commit 4ddff73218
7 changed files with 130 additions and 144 deletions
+2
View File
@@ -1,6 +1,8 @@
const ENGINE_URL = process.env.ENGINE_URL || 'http://127.0.0.1:3040';
const ENGINE_SECRET = process.env.ENGINE_SECRET || 'zeropost_internal_2026';
export async function engineFetch(path, options = {}) { return call(path, options); }
async function call(path, options = {}) {
const res = await fetch(`${ENGINE_URL}${path}`, {
...options,