path correction

This commit is contained in:
sandhiya-hepl
2026-07-15 18:10:26 +05:30
parent 35e439e69c
commit e84c1adac4
19 changed files with 87 additions and 35 deletions
+1 -1
View File
@@ -121,7 +121,7 @@ function LoginPreview() {
style={{ width: previewWidth * scale, height: previewHeight * scale }}
>
<iframe
src={BASE}
src={`${BASE}preview.html`}
title="Website preview"
className="login-preview-iframe"
style={{
+1 -1
View File
@@ -1,4 +1,4 @@
const API_BASE = import.meta.env.VITE_API_BASE || '';
import { API_BASE } from '../lib/apiBase';
export function getToken() {
return localStorage.getItem('admin_token');
+2 -2
View File
@@ -31,7 +31,7 @@ export function buildPreviewContent(baseContent, section, sectionData) {
return merged;
}
const PREVIEW_SRC = '/preview.html';
const PREVIEW_SRC = `${import.meta.env.BASE_URL}preview.html`;
const PREVIEW_WIDTH = 1440;
const PREVIEW_HEIGHT = 900;
@@ -134,7 +134,7 @@ export function SectionPreview({ section, label, content, sectionData }) {
<h3>{label}</h3>
</div>
<a
href={`/#${anchor}`}
href={`${import.meta.env.BASE_URL}#${anchor}`}
target="_blank"
rel="noopener noreferrer"
className="admin-preview-open"