Update CORS settings, enhance API URL detection, and improve template rendering
- Added new CORS origins for local development and specific IP addresses in `settings.py`. - Refactored API URL retrieval logic in `loadSiteDefinition.ts` and `fileAccess.ts` to auto-detect based on the current origin. - Enhanced error handling in API calls and improved logging for better debugging. - Updated `renderTemplate` function to support additional block types and improved rendering logic for various components in `templateEngine.tsx`.
This commit is contained in:
14
sites/src/builder/pages/dashboard/SiteDashboard.tsx
Normal file
14
sites/src/builder/pages/dashboard/SiteDashboard.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* SiteDashboard - Site Builder Dashboard
|
||||
* Placeholder component for builder dashboard functionality
|
||||
*/
|
||||
export default function SiteDashboard() {
|
||||
return (
|
||||
<div>
|
||||
<h2>Site Builder Dashboard</h2>
|
||||
<p>This is a placeholder for the Site Builder Dashboard.</p>
|
||||
<p>The builder functionality can be accessed from the main app at <code>/sites/builder/dashboard</code></p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user