Skip to content

Commit c94423a

Browse files
author
TAMV Nodo Cero
committed
fix: vercel build - use no-frozen-lockfile, fix next.config.mjs regex
1 parent 266cc49 commit c94423a

4 files changed

Lines changed: 9 additions & 21 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,6 @@ supabase/.temp
3939

4040
# CLI-generated migrations (originals in data/migrations/)
4141
supabase/migrations/
42+
43+
.vercel
44+
.env*

apps/rdm-hub/next.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const nextConfig = {
3838
],
3939
},
4040
{
41-
source: '/:path(.+\\.(css|js|png|jpg|svg|webp|woff2|ico))',
41+
source: '/_next/static/:path*',
4242
headers: [
4343
{ key: 'Cache-Control', value: 'public, max-age=31536000, immutable' },
4444
],

apps/rdm-hub/vercel.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"version": 2
3+
}

vercel.json

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,4 @@
11
{
2-
"version": 2,
3-
"name": "nodo-cero-rdm",
4-
"buildCommand": "cd ../.. && pnpm install && pnpm --filter rdm-hub build",
5-
"installCommand": "pnpm install",
6-
"builds": [
7-
{ "src": "apps/rdm-hub/package.json", "use": "@vercel/next" }
8-
],
9-
"routes": [
10-
{ "src": "/(.*)", "dest": "apps/rdm-hub/$1" }
11-
],
12-
"regions": ["sfo1", "iad1", "gru1"],
13-
"env": {
14-
"NEXT_PUBLIC_NODE_ID": "@next_public_node_id",
15-
"NEXT_PUBLIC_SUPABASE_URL": "@supabase_url",
16-
"NEXT_PUBLIC_SUPABASE_ANON_KEY": "@supabase_anon_key"
17-
},
18-
"functions": {
19-
"apps/rdm-hub/app/api/**/*.ts": { "memory": 512, "maxDuration": 10 }
20-
},
21-
"crons": []
2+
"installCommand": "pnpm install --no-frozen-lockfile",
3+
"buildCommand": "pnpm --filter rdm-hub build"
224
}

0 commit comments

Comments
 (0)