path correction
This commit is contained in:
+4
-4
@@ -100,7 +100,7 @@ function LoginPreview() {
|
||||
<h1>Content <span>Manager</span></h1>
|
||||
<p>Preview the live website before you sign in. Edits publish instantly after login.</p>
|
||||
</div>
|
||||
<a href="/" target="_blank" rel="noopener noreferrer" className="login-preview-link">
|
||||
<a href={BASE} target="_blank" rel="noopener noreferrer" className="login-preview-link">
|
||||
<ExternalLink size={14} />
|
||||
Open full site
|
||||
</a>
|
||||
@@ -123,7 +123,7 @@ function LoginPreview() {
|
||||
style={{ width: previewWidth * scale, height: previewHeight * scale }}
|
||||
>
|
||||
<iframe
|
||||
src="/"
|
||||
src={BASE}
|
||||
title="Website preview"
|
||||
className="login-preview-iframe"
|
||||
style={{
|
||||
@@ -422,7 +422,7 @@ export default function App() {
|
||||
|
||||
const prefetch = document.createElement('link');
|
||||
prefetch.rel = 'prefetch';
|
||||
prefetch.href = '/preview.html';
|
||||
prefetch.href = `${BASE}preview.html`;
|
||||
document.head.appendChild(prefetch);
|
||||
|
||||
setContentLoading(true);
|
||||
@@ -542,7 +542,7 @@ export default function App() {
|
||||
<p className="admin-topbar-sub">{SECTION_DESCRIPTIONS[activeSection]}</p>
|
||||
</div>
|
||||
<div className="admin-topbar-actions">
|
||||
<a href="/" target="_blank" rel="noopener noreferrer" className="btn-ghost">
|
||||
<a href={BASE} target="_blank" rel="noopener noreferrer" className="btn-ghost">
|
||||
<ExternalLink size={14} />
|
||||
View site
|
||||
</a>
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
const API_BASE = import.meta.env.VITE_API_URL || '/citpl_website';
|
||||
const API_BASE = '';
|
||||
|
||||
export function getToken() {
|
||||
return localStorage.getItem('admin_token');
|
||||
|
||||
Reference in New Issue
Block a user