mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Make nym work
This commit is contained in:
2 files changed
+12
-17
No files matched your search
@@ -13,12 +13,9 @@ export function useIsProjectPreviewable(projectId: string) {
|
||||
queryFn: async () => {
|
||||
try {
|
||||
// Check for required files
|
||||
const [hasIndexHtml, hasPackageJson] = await Promise.all([
|
||||
projectsManager.fileExists(projectId, 'index.html'),
|
||||
projectsManager.fileExists(projectId, 'package.json'),
|
||||
]);
|
||||
const hasIndexHtml = await projectsManager.fileExists(projectId, 'index.html');
|
||||
|
||||
return hasIndexHtml && hasPackageJson;
|
||||
return hasIndexHtml;
|
||||
} catch (error) {
|
||||
console.error('Failed to check if project is previewable:', error);
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user