🚧 WIP on Docker import group

This commit is contained in:
ajnart
2023-11-17 15:34:14 +01:00
parent 228c51299b
commit 669d311b0c
12 changed files with 275 additions and 104 deletions

View File

@@ -26,7 +26,7 @@ export default function OnboardPage({
const [onboardingSteps, { open: showOnboardingSteps }] = useDisclosure(false);
const isUpgradeFromSchemaOne = configSchemaVersions.includes(1);
const isUpgradeFromSchemaOne = false;
return (
<>
@@ -81,12 +81,12 @@ export default function OnboardPage({
}
export const getServerSideProps: GetServerSideProps = async (ctx) => {
const userCount = await getTotalUserCountAsync();
if (userCount >= 1) {
return {
notFound: true,
};
}
// const userCount = await getTotalUserCountAsync();
// if (userCount >= 1) {
// return {
// notFound: true,
// };
// }
const files = fs.readdirSync('./data/configs').filter((file) => file.endsWith('.json'));
const configs = files.map((file) => getConfig(file));