Skip to content

Commit

Permalink
Merge pull request timothymiller#117 from janwirth/patch-1
Browse files Browse the repository at this point in the history
Add actionable info to missing APP_URL warning
  • Loading branch information
albbus-stack authored Nov 25, 2023
2 parents 5120ea9 + 7f0d3cb commit 5a5317d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 5a5317d

Please sign in to comment.