fix: optimize datacenter folder structure

This commit is contained in:
alt0 committed 2023-01-08 16:14:02 +08:00
1 parent aed2b482ea
commit 7140d41296
20 files changed
+39 -1310

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
import { useEffect } from 'react';
import { getDataCenter } from '@affine/datacenter';
/**
* testing only when development
*/
const Page = () => {
useEffect(() => {
getDataCenter().then(dc => {
// @ts-expect-error global variable
window.dc = dc;
});
}, []);
return <div>Testing only</div>;
};
export default Page;