File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/support/apis Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 11import { z } from "zod" ;
2- import { NEXT_PUBLIC_THIRDWEB_API_HOST } from "@/constants/public-envs" ;
3- import { API_SERVER_SECRET } from "@/constants/server-envs" ;
2+ import {
3+ NEXT_PUBLIC_DASHBOARD_CLIENT_ID ,
4+ NEXT_PUBLIC_THIRDWEB_API_HOST ,
5+ } from "@/constants/public-envs" ;
46import { getVercelEnv } from "@/utils/vercel" ;
57
68type SupportFeedbackInput = {
@@ -29,8 +31,8 @@ export async function submitSupportFeedback(
2931 const input = parsed . data ;
3032
3133 try {
32- if ( ! API_SERVER_SECRET ) {
33- return { error : "API_SERVER_SECRET not configured" } ;
34+ if ( ! NEXT_PUBLIC_DASHBOARD_CLIENT_ID ) {
35+ return { error : "NEXT_PUBLIC_DASHBOARD_CLIENT_ID not configured" } ;
3436 }
3537
3638 if ( ! NEXT_PUBLIC_THIRDWEB_API_HOST ) {
@@ -43,7 +45,7 @@ export async function submitSupportFeedback(
4345 method : "POST" ,
4446 headers : {
4547 "Content-Type" : "application/json" ,
46- "x-service-api-key" : API_SERVER_SECRET ,
48+ "x-service-api-key" : NEXT_PUBLIC_DASHBOARD_CLIENT_ID ,
4749 } ,
4850 body : JSON . stringify ( {
4951 rating : input . rating ,
You can’t perform that action at this time.
0 commit comments