Biondi Bagasta Wiko Putra
12/06/2021, 3:51 PMpedrodiaz
12/06/2021, 5:20 PMNeatFastro
12/06/2021, 7:51 PMgaryaustin
12/06/2021, 8:14 PMalpha_
12/06/2021, 8:20 PMNeatFastro
12/06/2021, 8:21 PMScott P
12/06/2021, 9:00 PMLOYAL
12/06/2021, 9:51 PMbloopypoo
12/07/2021, 1:21 AMbloopypoo
12/07/2021, 1:22 AMbloopypoo
12/07/2021, 1:23 AMIsaiah
12/07/2021, 1:23 AManothercoder
12/07/2021, 3:05 AMcjog
12/07/2021, 5:13 AMEmbm
12/07/2021, 5:35 AMDeleted User
12/07/2021, 5:46 AMBiondi Bagasta Wiko Putra
12/07/2021, 10:27 AMsatishb
12/07/2021, 11:46 AMPostgreSQL Functions
and github.com/appleboy/gorush
to send notifications to iOS and android.
Steps:
1. Deploy your gorush container with iOS p12/p8 and android gcm/fcm keys
2. Create notifications table containing token and payload
3. Create Supabase Function that calls gorush's push api, ref: https://github.com/appleboy/gorush#post-apipush
4. Once all done you can add notification to database from any js/dart/go libraries and it will trigger reaction.
OR: if you want to use simple middleware between supabase http triggers and gorush, use this below example that i had added in gist
https://gist.github.com/satishbabariya/2bbb72befb3ff20b1ae1f505bee8d6fd
CC: @User may be we can in distant future integrate gorush in supabase?Romain Petit
12/07/2021, 11:55 AMsilentworks
12/07/2021, 12:02 PMletourpowerscombine
12/07/2021, 4:55 PM> Using @sveltejs/adapter-cloudflare
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/sam/just-start/node_modules/@supabase/supabase-js/src/lib/helpers' imported from /Users/sam/just-start/.svelte-kit/output/server/chunks/index-40b3642e.js
at new NodeError (node:internal/errors:363:5)
at finalizeResolution (node:internal/modules/esm/resolve:307:11)
at moduleResolve (node:internal/modules/esm/resolve:742:10)
at Loader.defaultResolve [as _resolve] (node:internal/modules/esm/resolve:853:11)
at Loader.resolve (node:internal/modules/esm/loader:89:40)
at Loader.getModuleJob (node:internal/modules/esm/loader:242:28)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:73:40)
at link (node:internal/modules/esm/module_job:72:36)
> 500 /
Error: 500 /
at file:///Users/sam/just-start/node_modules/@sveltejs/kit/dist/chunks/index4.js:86:11
at visit (file:///Users/sam/just-start/node_modules/@sveltejs/kit/dist/chunks/index4.js:222:5)
at async prerender (file:///Users/sam/just-start/node_modules/@sveltejs/kit/dist/chunks/index4.js:303:6)
at async Object.prerender (file:///Users/sam/just-start/node_modules/@sveltejs/kit/dist/chunks/index4.js:368:4)
at async adapt (file:///Users/sam/just-start/node_modules/@sveltejs/adapter-cloudflare/index.js:27:4)
at async adapt (file:///Users/sam/just-start/node_modules/@sveltejs/kit/dist/chunks/index4.js:393:2)
at async file:///Users/sam/just-start/node_modules/@sveltejs/kit/dist/cli.js:896:5
This happened after porting some supabase functions from svelte files into dedicate endpoints (e.g. function.js
). All of the functionality works as expected, it's just failing to build properly locally (with npm run build
).
Here is the repo: https://github.com/sbutler-gh/just-start/tree/cloudflare
Can anybody spot the issue?jonny
12/07/2021, 9:38 PMBiondi Bagasta Wiko Putra
12/08/2021, 3:21 AMtirmes
12/08/2021, 5:38 AMjumpship
12/08/2021, 10:59 AMjumpship
12/08/2021, 11:06 AMJW
12/08/2021, 11:09 AMYokoWasis
12/08/2021, 1:49 PMGitanes
12/08/2021, 2:42 PMError: null value in column "id" of relation "sessions" violates not-null constraint
. should i provide a uuid myself? i try to revert to int8 to benefit from auto increment, but it's stuck with uuidsilentworks
12/08/2021, 3:18 PM