fix: drafts page uses server-side API routes (no NEXT_PUBLIC needed)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user