Refactored to use app folder.

This commit is contained in:
Mike Cao 2023-09-29 05:29:22 -07:00
parent 40cfcd41e9
commit 9a52cdd2e1
258 changed files with 2025 additions and 2258 deletions

View file

@ -0,0 +1,15 @@
import WebsiteSettings from '../WebsiteSettings';
async function getDisabled() {
return !!process.env.CLOUD_MODE;
}
export default async function WebsiteSettingsPage({ params }) {
const disabled = await getDisabled();
if (!params.id || disabled) {
return null;
}
return <WebsiteSettings websiteId={params.id} />;
}