upgrade APIlite and change build backend use TypeScript instead of JavaScript
This commit is contained in:
@ -9,7 +9,7 @@ $backend_api = new TPsoft\Nutrio\API('typescript', 'import.meta.env.VITE_BACKEND
|
||||
$output = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
$ts_path = realpath(__DIR__ . '/../../frontend/src').'/BackendAPI.js';
|
||||
$ts_path = realpath(__DIR__ . '/../../frontend/src').'/BackendAPI.ts';
|
||||
$suc = file_put_contents($ts_path, $output);
|
||||
if ($suc === false) {
|
||||
echo "✗ TypeScript store into file failed\n";
|
||||
|
||||
Reference in New Issue
Block a user