path correction
This commit is contained in:
+1
-1
@@ -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
@@ -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');
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user