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
@@ -1,4 +1,4 @@
import { PUBLIC_SERVER_URL } from '$env/static/public';
import { env } from '$env/dynamic/public';
var win, output, textarea;
@@ -89,7 +89,7 @@ export const addMathPlugin = (tinymce: any) => {
if (srcMatch) {
// 2. Point the formula to our server
const customAPI = PUBLIC_SERVER_URL + '/katex';
const customAPI = env.PUBLIC_SERVER_URL + '/katex';
const url = srcMatch[1]?.replaceAll('https://latex.codecogs.com/svg.image', customAPI);
// 3. Fetch the HTML from the server