forked from travisvn/supabase-pause-prevention
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkeep-alive-config.ts
More file actions
23 lines (16 loc) · 832 Bytes
/
keep-alive-config.ts
File metadata and controls
23 lines (16 loc) · 832 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
export type KeepAliveConfig = typeof keepAliveConfig
export const keepAliveConfig = {
// Select a table in your Supabase database to make a call to
table: 'keep-alive',
// Column that will be queried with a random string
column: 'name',
// Configuration for actions taken on the database
allowInsertionAndDeletion: true, // Set this to false unless you're using a 'keep-alive'-dedicated table
disableRandomStringQuery: false, // Set this to true if allowInsertionAndDeletion is true. Otherwise, no db actions taken
sizeBeforeDeletions: 10, // Max size of table before any deletions start (if allowInsertionAndDeletion is true)
consoleLogOnError: true,
otherEndpoints: [
'https://your-other-vercel-project-urls.vercel.app/api/keep-alive',
'https://your-other-supabase-app.com/api/keep-alive',
]
}