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(() => {
|
||||
const sendMail = async () => {
|
||||
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}`,
|
||||
message: $generateHtmlFromNodes(editor),
|
||||
attachments: data.attachments,
|
||||
|
@ -69,7 +69,7 @@ function SurveyForm({ theme }) {
|
||||
editor.update(() => {
|
||||
const sendMail = async () => {
|
||||
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()}`,
|
||||
message: `${Object.keys(form).map(
|
||||
(k) => `<div>${questions[k]}</div><div>${form[k]}</div>`
|
||||
|
Loading…
Reference in New Issue
Block a user