Skip to content

Commit

Permalink
fix: server url
Browse files Browse the repository at this point in the history
  • Loading branch information
warmachine028 committed Nov 28, 2024
1 parent 3e23fd0 commit a21b629
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions server/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ CLERK_JWT_TOKEN=<Your CLERK_JWT_TOKEN>
CLOUDINARY_CLOUD_NAME=<Your CLOUDINARY_CLOUD_NAME>
CLOUDINARY_API_KEY=<Your CLOUDINARY_API_KEY>
CLOUDINARY_API_SECRET=<Your CLOUDINARY_API_SECRET>
SERVER_URL=<Your SERVER_URL>
2 changes: 1 addition & 1 deletion server/src/cron/pingServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const pingServer = cron({
pattern: '*/14 * * * *',
async run() {
try {
const response = await fetch('https://memories-omm3.onrender.com')
const response = await fetch(Bun.env.SERVER_URL!)
if (response.ok) {
console.log('Server pinged successfully')
} else {
Expand Down

0 comments on commit a21b629

Please sign in to comment.