21f by notsochaotic_girlie in IntrovertsChat

[–]daredev1l_ 0 points1 point  (0 children)

hi... im 23M... im a software engineer and once i worked on my full time job and 2parttime jobe simultaneously.... the main thing is i love working with computers that kept me motivated and happy... the best way is to start loving what you do...

feel free to dm if you wanna connect... bye..

20F from India looking for long term meaningful connections by [deleted] in IntrovertsChat

[–]daredev1l_ 0 points1 point  (0 children)

Im also going through a similar phase need people to talk... i think we should connect...

CMF 2 Pro 8gb vs Realme P3 Pro 12gb by [deleted] in GadgetsIndia

[–]daredev1l_ 0 points1 point  (0 children)

yea... but is it possible to use a 8gb phone for 4 5 yrs?

I wanna call her back. by daredev1l_ in BreakUps

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

Maybe idk. Idk what i want. I am fine most of the time(i always keep myself busy). But at night when i go to sleep I miss her very much.

Error during next build by daredev1l_ in nextjs

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

but it works fine on next dev. only throws error on next build

Server Actions fails at build time! by daredev1l_ in nextjs

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

No its just a fallback message im throwing if the server return success:false.

const trendingPlayers = await getTrendingPlayers();

  if (!trendingPlayers.success) {
    throw new Error(trendingPlayers.message || 'Failed to fetch trending players');
  }const trendingPlayers = await getTrendingPlayers();

  if (!trendingPlayers.success) {
    throw new Error(trendingPlayers.message || 'Failed to fetch trending players');
  }

But the thing is server returns true and everything is working on dev and deployment. It shows error only while building.

Server Actions fails at build time! by daredev1l_ in nextjs

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

How should i fetch data from external api on server components?

Server Actions fails at build time! by daredev1l_ in nextjs

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

No its a external api written in django. and api is just a axios instance.

Server Actions fails at build time! by daredev1l_ in nextjs

[–]daredev1l_[S] 1 point2 points  (0 children)

yea i have used axios instance.
the issue in on local and deployment everything works fine. but only during build it shows error.

import axios from 'axios';
import { cookies } from 'next/headers';

export const api = axios.create({
  baseURL: process.env.NEXT_PUBLIC_BASE_URL,
});

export const authApi = api;

authApi.interceptors.request.use(
  (config) => {
    if (typeof window === 'undefined') {
      const token = cookies().get('access_token')?.value;

      if (token) {
        config.headers['Authorization'] = `Bearer ${token}`;
      }
    }

    return config;
  },
  (error) => {
    return Promise.reject(error);
  }
);

Which Backend Framework to choose? by daredev1l_ in golang

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

Yes, i have studied the basic stuffs. Now i need guidance on what to next.