Supabase Nixpacks Error
lasse
PROOP

2 years ago

When trying to deploy to prod using nixpacks with bun. It throws:

Error: Error reading src/types/database.types.ts

Caused by:

stream did not contain valid UTF-8

Wich is where my types from supabase is genarated by the supabase cli.

is there away to ignore the file?

11 Replies

lasse
PROOP

2 years ago

N/A


brody
EMPLOYEE

2 years ago

kinda seems like youd need that file though?


lasse
PROOP

2 years ago

Yeah i do. But i don't know how to fix it


brody
EMPLOYEE

2 years ago

make sure the file is utf-8


lasse
PROOP

2 years ago

mabye i need to rename it?


brody
EMPLOYEE

2 years ago

I'm not sure what the file name has to do with it being utf-8


lasse
PROOP

2 years ago

idk too, but i never getten this error before.


lasse
PROOP

2 years ago

I can share the file?


brody
EMPLOYEE

2 years ago

^


brody
EMPLOYEE

2 years ago

no need, just make sure it's utf-8


lasse
PROOP

2 years ago

It fixed the error. By renaming it


Loading...