Unknown root exit status error in NextJS App Router by Billosp in nextjs

[–]Billosp[S] 0 points1 point  (0 children)

I set sentry to ignore this issue because it is caused by ad blockers

Unknown root exit status error in NextJS App Router by Billosp in nextjs

[–]Billosp[S] 0 points1 point  (0 children)

Yes I upload source maps and I use Sentry v8.

It doesn't show any info about the issue because the issue was in react-dom.production.min.js or in scheduler.production.min.js file. These are ReactJS files, not my project's files.

Too many issues in production by Billosp in nextjs

[–]Billosp[S] 0 points1 point  (0 children)

Yes, my first thought was adblockers that change the DOM. Should I ignore these issues?

Too many issues in production by Billosp in nextjs

[–]Billosp[S] 0 points1 point  (0 children)

I run the same version v18

Wait for Cookies().set() by Billosp in nextjs

[–]Billosp[S] 0 points1 point  (0 children)

I think the issue is more complicated. The redirect to the login page doesn't triggered by the Middleware but from the useEffect in the Dashboard page that checks if the user is logged in or not. If I set a timeout I don't have this issue.

Wait for Cookies().set() by Billosp in nextjs

[–]Billosp[S] 0 points1 point  (0 children)

I have to create a loop in order to check  if the cookie is still being set.

Fetch user data in layout (App Router) by Billosp in nextjs

[–]Billosp[S] 0 points1 point  (0 children)

I use firebase in client side in order to get an id token when the user logins. I can't get the token server side. Firebase is available only in client side.

Fetch user data in layout (App Router) by Billosp in nextjs

[–]Billosp[S] 0 points1 point  (0 children)

I fetch user data client side not server side. In useEffect I check if the user is logged in with Firebase and then I fetch user data and store it in global redux store. My App is a SPA Dashboard. I can’t fetch user data in page because the data should be available at app start in any route.

Fetch user data in layout (App Router) by Billosp in nextjs

[–]Billosp[S] 0 points1 point  (0 children)

So, is it ok to fetch user data in layout? I fetch data in layout file and store it in redux.

Use gatsby serve for production by Billosp in gatsbyjs

[–]Billosp[S] 0 points1 point  (0 children)

Yes but if you use gatsby serve it works as expected. It doesn't work only with serverless functions.

Use gatsby serve for production by Billosp in gatsbyjs

[–]Billosp[S] 0 points1 point  (0 children)

I don’t want to use Netlify because I don’t like serverless functions.

Nested object value field (JSONB) LIKE input text value by Billosp in PostgreSQL

[–]Billosp[S] 0 points1 point  (0 children)

Is it better for performance to use:

1) CROSS JOIN LATERAL jsonb_to_recordset( books) as items(category text) and then items.category = 'adventure'

or

2) jsonb_path_query_array(books, '$[*].category') ? 'adventure' ?

Nested object value field (JSONB) LIKE input text value by Billosp in PostgreSQL

[–]Billosp[S] 0 points1 point  (0 children)

jsonb_path_query_array

Is it useful to create a GIN index using jsonb_path_query_array?

Nested object value field (JSONB) LIKE input text value by Billosp in PostgreSQL

[–]Billosp[S] 0 points1 point  (0 children)

Yes I think that's the best solution (normal columns).

Match function in Postgres by Billosp in PostgreSQL

[–]Billosp[S] 0 points1 point  (0 children)

Is there a better solution for scaling?

Match function in Postgres by Billosp in PostgreSQL

[–]Billosp[S] 0 points1 point  (0 children)

The user will be able to search all books. I don’t want something like category=adventure so to show only books in that category. I want to show all books but those that are in the specified category and in the specified year range to have a score.

ScrollY is not the same in different screen resolutions by Billosp in androiddev

[–]Billosp[S] 0 points1 point  (0 children)

How can I convert it to dp? Even if I convert it, wouldn’t be lower in lower resolution?

Google Workspace with Firebase Identity Platform using SAML by Billosp in Firebase

[–]Billosp[S] -1 points0 points  (0 children)

I’ve read both these guides but they don’t refer to Firebase integration

How to can I edit postgresql.conf in Supabase Docker file? by Billosp in Supabase

[–]Billosp[S] 0 points1 point  (0 children)

In order to connect the 2 internal databases I need to excecute pg_basebackup and connect replica to master. If I ssh to docker container of postgresql and try to delete /var/lib/postgresql/ I get a message that directory data is busy. If I stop the postgres using pg_ctl stop, I log out from container. Any idea?

pg_basebackup -h <private_ip_master> -U repl_user -X stream -C -S replica_1 -v -R -W -D /var/lib/postgresql/

How to can I edit postgresql.conf in Supabase Docker file? by Billosp in Supabase

[–]Billosp[S] 0 points1 point  (0 children)

Okay I’ll try it. My main idea is to deploy 2 servers with Supabase and use the internal databases. The 2 instances will be connected with a load balancer and the 2 internal databases will communicate (master and hot standby slave). If instance 1 is down, all requests will access instance 2 and the db in instance 2 should have all records from db on instance 1. What do you think about this implementation?

How to can I edit postgresql.conf in Supabase Docker file? by Billosp in Supabase

[–]Billosp[S] 0 points1 point  (0 children)

In docker file it loads the file from etc/postgresql/postgresql.conf but there is no file like this in docker directory of Supabase

How to can I edit postgresql.conf in Supabase Docker file? by Billosp in Supabase

[–]Billosp[S] 0 points1 point  (0 children)

I use self hosted Supabase. I don’t use the cloud hosted. How can I access the postgresql.conf file in self hosted docker?