Issue with deploy for Supabase Monorepo
I'm having an issue deploying my project which is a Supabase monorepo (Next.js + Supabase functions [Deno]).
From reading the documentation (https://nixpacks.com/docs/providers/deno) I think the error is coming from this:
'Deno is detected if there is a deno.{json,jsonc} file found or if any .{ts,tsx,js,jsx} file is found that imports something from deno.land.'
I do in fact have files that mention deno.land in my supabase functions monorepo folder.
However this auto detection of Deno is breaking my builds for the Next.js side because the Nix builder thinks it's in a Deno project and then fails to find Yarn.
Does anyone know of I was to override this behavior?
Deno | Nixpacks
App source + Nix packages + Docker = Image
7 Replies
Project ID:
d56d2d18-a224-4e42-89ad-f6d1f43b6b55
d56d2d18-a224-4e42-89ad-f6d1f43b6b55
For added context my project structure is as follows:
root
app
package.json
[rest of Next.js files]
supabase
functions
However following Supabase's instructions I have a special VScode workspace that makes the supabase folder appear as a seperate workscpace/folder
Seems like either this:
https://docs.railway.app/deploy/builds#build-providers
or this
https://docs.railway.app/deploy/builds#procfiles
might offer a fix
Solution
Will I need to be park of priority boarding for this? Getting mixed messages from the documentation?
not for anything with a nixpacks.toml file
That fixed it!