Fix env variables
This commit is contained in:
parent
725f01d8da
commit
7a406eb6d3
1
.env.sample
Normal file
1
.env.sample
Normal file
@ -0,0 +1 @@
|
|||||||
|
VITE_BACKEND_URL=http://backend.com
|
@ -65,7 +65,7 @@ function Form({ theme }) {
|
|||||||
editor.update(() => {
|
editor.update(() => {
|
||||||
const sendMail = async () => {
|
const sendMail = async () => {
|
||||||
await axios
|
await axios
|
||||||
.post(`${import.meta.env.VITE_API_BACKEND_URL}/send_email`, {
|
.post(`${import.meta.env.VITE_BACKEND_URL}/send_email`, {
|
||||||
subject: `[BUG REPORT]: ${data.title}`,
|
subject: `[BUG REPORT]: ${data.title}`,
|
||||||
message: $generateHtmlFromNodes(editor),
|
message: $generateHtmlFromNodes(editor),
|
||||||
attachments: data.attachments,
|
attachments: data.attachments,
|
||||||
|
@ -69,7 +69,7 @@ function SurveyForm({ theme }) {
|
|||||||
editor.update(() => {
|
editor.update(() => {
|
||||||
const sendMail = async () => {
|
const sendMail = async () => {
|
||||||
await axios
|
await axios
|
||||||
.post(`${import.meta.env.VITE_API_BACKEND_URL}/send_email`, {
|
.post(`${import.meta.env.VITE_BACKEND_URL}/send_email`, {
|
||||||
subject: `[SURVEY]: ${new Date().toDateString()}`,
|
subject: `[SURVEY]: ${new Date().toDateString()}`,
|
||||||
message: `${Object.keys(form).map(
|
message: `${Object.keys(form).map(
|
||||||
(k) => `<div>${questions[k]}</div><div>${form[k]}</div>`
|
(k) => `<div>${questions[k]}</div><div>${form[k]}</div>`
|
||||||
|
Loading…
Reference in New Issue
Block a user