fix: move all static env to dynamic

This commit is contained in:
Rotimi Best
2024-09-29 04:49:28 +01:00
parent 73fefddcc3
commit a3d478d313
8 changed files with 21 additions and 21 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { PUBLIC_SERVER_URL } from '$env/static/public';
import { env } from '$env/dynamic/public';
const sendEmail = async (
emailDataArray: {
@@ -11,7 +11,7 @@ const sendEmail = async (
}[]
) => {
try {
const response = await fetch(`${PUBLIC_SERVER_URL}/sendEmail`, {
const response = await fetch(`${env.PUBLIC_SERVER_URL}/sendEmail`, {
method: 'POST',
headers: {
'Content-Type': 'application/json'