Open hridaya423 opened 6 months ago
anyone else with this error, supabase key, url are production only whereas the deployment was in preview therefore failure
I am facing the same issue. I will work on this again tomorrow morning and will get back to you with a fix if I find it.
anyone else with this error, supabase key, url are production only whereas the deployment was in preview therefore failure
The solution seems to be to create separate Supabase projects for staging and production environments, and use the relevant keys and url's from the staging environment.
anyone else with this error, supabase key, url are production only whereas the deployment was in preview therefore failure
The solution seems to be to create separate Supabase projects for staging and production environments, and use the relevant keys and url's from the staging environment.
Ok but how can I sync that? I was hoping to not create a testing Supabase project since I can use local to develop. If I have to support preview on Vercel, is there a way to sync 2 project?
I have created 2 environments ( DEV and PROD ) . I have 2 Supabase projects DEV & PROD and working on 2 github branches main ( PROD ) and DEV ( dev ).
I still encounter the same error:
Error: supabaseUrl is required.
at new ay (/vercel/path0/.next/server/chunks/286.js:1:111494)
at ab (/vercel/path0/.next/server/chunks/286.js:1:114738)
at 91819 (/vercel/path0/.next/server/app/api/webhooks/route.js:1:77116)
at t (/vercel/path0/.next/server/webpack-runtime.js:1:127)
at r (/vercel/path0/.next/server/app/api/webhooks/route.js:1:117797)
at /vercel/path0/.next/server/app/api/webhooks/route.js:1:117828
at t.X (/vercel/path0/.next/server/webpack-runtime.js:1:1191)
at /vercel/path0/.next/server/app/api/webhooks/route.js:1:117810
at Object.<anonymous> (/vercel/path0/.next/server/app/api/webhooks/route.js:1:117856)
at Module._compile (node:internal/modules/cjs/loader:1469:14)
> Build error occurred
Error: Failed to collect page data for /api/webhooks
at /vercel/path0/node_modules/.pnpm/next@14.2.3_react-dom@18.3.1_react@18.3.1/node_modules/next/dist/build/utils.js:1268:15
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
type: 'Error'
}
ELIFECYCLE Command failed with exit code 1.
Error: Command "pnpm run build" exited with 1
I have used the deploy button from github, followed all steps, as soon as i change anything in the github repo it fails, didnt touch the api/webhooks folder, just some footer changes and removing readme, and public files related to it. It worked before i changed anything.