rawpineapple

u/rawpineapple


r/nextjs•

I have a Next.js project using Prisma that was error free until I installed tailwind/aspect-ratio (npm install -D ^(@)tailwindcss/aspect-ratio).

After the install, I get the error Error: PrismaClient is not configured to run in Edge Runtime. I don't know much about Edge Runtime, and I have not tried to configure it. I tried to uninstall (npm uninstall -D ^(@)tailwindcss/aspect-ratio), and reverted back all changes in my repository, but I still get the error. Any thoughts?

Full error:

[Error: PrismaClient is not configured to run in Edge Runtime (Vercel Edge Functions, Vercel Edge Middleware, Next.js (Pages Router) Edge API Routes, Next.js (App Router) Edge Route Handlers or Ne

14

r/nextjs•

I've created a basic Next.js website that uses Auth.js (v5 beta) for authentication. The website is connected to a Postgres DB via a Prisma adapter. The DB and authentication functionality is working well.

I'm struggling to work out how to hide/show buttons on the Navbar (client) after login or logout (e.g. hide login button after a successful login). I'm trying to trigger a Navbar re-render, but I can't work out how to do it......it seems like such an easy thing to do, but I've wasted a lot of time on it.

I have tried creating a Auth context that stores if the user is authenticated, but I haven't got that working. Here is my Context/Provider code.

[is-authenticated-provider.tsx](ht

22

r/PowerBI•

I'm trying to create an Azure API function using .NET to call the Power BI API Dax Queries functionality, but I'm having a lot of trouble working out how to do it. I basically want to sent a Dax Query to the api and then use the results.

Dax Query article:

https://powerbi.microsoft.com/en-us/blog/announcing-the-public-preview-of-power-bi-rest-api-support-for-dax-queries/
Ideally I would like to authorize using a Service Principal (Azure App Registration with Power BI Application permission Tenant.ReadWrite.All), but when I try to do that I get an unauthorized error.

26

r/dotnet•

I have created a class with a method to send httpclient requests to an api. The method returns the result as a stream. I return a stream because I need to deserialise the stream multiple times, and with different objects depending on the api.

I feel that it might be incorrect to return a stream. Would it be better if I returned a class with a stream property and a dispose method that disposes the stream? I then wouldn't require a using statement to dispose the stream?

Thanks.

Edit:

The method takes in the http method, url, content and headers and returns a response stream. I then need to deserialise to check for the error status, and if there are no errors I stream into the full resp

726

r/dotnet•

I'm a developer that has mainly done back-end dev in .NET. I am currently looking at developing a simple iOS/Android app that communicates with an api. I am comfortable developing the api, but I have some concerns about the app development.

The app's main purpose is to show progress of each member of a team reaching a target. I'm imagining that it shows the progress of the team climbing a hill to the summit, or racing around a race track. Each time a person opens the app, it will show their position on the hill, as well as their team members position.

I'm fairly confident I could get the app functionality working, but I'm very unsure about the graphics. When I say graphics I me

1016


r/Iota•

I believe that Iota holders need to move their Iota from exchanges to a secure wallet. If the value of crypto, and especially Iota keep increasing in value, the world governments are going to come after it. Buy a recommended hardware wallet and secure your Iota. This will not only secure the value of Iota, it will open a whole new financial world.

924

r/dotnetcore•

I'm writing a .NET Core Web API and am trying to return search results with their associated images. The images are stored in directories. Can I return the view model with the images, or do I return the view model, then make a call to retrieve each image.

Any examples would be appreciated. I have found lots of examples of uploading files from client to server, but can't find the reverse.

38

r/azuredevops•

We have recently moved our source code from a local TFS repository to an Azure Devops Git repository.

For now we are going to continue building locally, so I need a script to download the latest version of a branch locally, before building.

I have tried a few different methods, but am getting confused about the best one to go with:

Git Bash

- I have installed Git Bash, and have managed to clone a branch successfully via the interface.

- I have looked at scripting Git requests in Powershell, but am struggling with scripting the authentication prior to Git requests.

- I'm also a bit unsure of the steps required to 'Get Latest' in Powershell prior to each build. I'm thinking the

37

r/Adelaide•

Sydney seems to have quite a few ocean pools. I've never swam in one, but they look awesome. Why doesn't Adelaide have any? Where would be a good spot to build one?

315