E2E port & process.env usecases
This commit is contained in:
@@ -96,7 +96,7 @@ export async function deleteForm(id: number) {
|
||||
|
||||
export const signupFormSendEmail = async (data, id): Promise<any> => {
|
||||
try {
|
||||
const resp = await axios.post(`${process.env.NEXT_PUBLIC_API_URL}/signupForm/${id}/sendemail/`, data, {
|
||||
const resp = await axios.post(`${URL}${id}/sendemail/`, data, {
|
||||
headers: {
|
||||
"Authorization": getAuthHeader(),
|
||||
},
|
||||
@@ -110,7 +110,7 @@ export const signupFormSendEmail = async (data, id): Promise<any> => {
|
||||
|
||||
export const getSignups = async (id): Promise<Signup[]> => {
|
||||
try {
|
||||
const resp = await axios.get(`${process.env.NEXT_PUBLIC_API_URL}/signupForm/${id}/signups/`, {
|
||||
const resp = await axios.get(`${URL}${id}/signups/`, {
|
||||
headers: {
|
||||
"Authorization": getAuthHeader(),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user