feat: dist/ pridan do repa pro server deploy
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
13
dist/router.php
vendored
Normal file
13
dist/router.php
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
/**
|
||||
* SPA Router - serves index.html for all admin routes
|
||||
*/
|
||||
|
||||
http_response_code(200);
|
||||
|
||||
$indexPath = __DIR__ . '/index.html';
|
||||
if (file_exists($indexPath)) {
|
||||
readfile($indexPath);
|
||||
} else {
|
||||
echo '<!DOCTYPE html><html><body><h1>Application not found</h1></body></html>';
|
||||
}
|
||||
Reference in New Issue
Block a user