From 7f0d3cbd79d54da1b0fcdd9e4c798087a7a9ec03 Mon Sep 17 00:00:00 2001 From: janwirth Date: Fri, 24 Nov 2023 23:47:32 +0100 Subject: [PATCH] Add actionable info to missing APP_URL warning Related to #103 --- packages/api/src/worker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api/src/worker.ts b/packages/api/src/worker.ts index 8797e774b..e8cc75567 100644 --- a/packages/api/src/worker.ts +++ b/packages/api/src/worker.ts @@ -15,7 +15,7 @@ const app = new Hono<{ Bindings: Bindings }>() // Setup CORS for the frontend app.use('/trpc/*', async (c, next) => { if (c.env.APP_URL === undefined) { - console.log('APP_URL is not set. CORS errors may occur.') + console.log('APP_URL is not set. CORS errors may occur. Make sure the .dev.vars file is present at /packages/api/.dev.vars') } return await cors({ origin: [c.env.APP_URL],