CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/next/pages/config/index.tsx
Views: 687
1
/*
2
* This file is part of CoCalc: Copyright © 2021 Sagemath, Inc.
3
* License: MS-RSL – see LICENSE.md for details
4
*/
5
6
import { Layout } from "antd";
7
8
import Header from "components/landing/header";
9
import Footer from "components/landing/footer";
10
import Head from "components/landing/head";
11
import { Customize } from "lib/customize";
12
import withCustomize from "lib/with-customize";
13
import Redirect from "components/misc/redirect";
14
15
// just redirect
16
export default function Preferences({ customize }) {
17
return (
18
<Customize value={customize}>
19
<Head title="Configuration" />
20
<Layout>
21
<Header />
22
<Redirect target={"/config/search/input"} />
23
<Footer />
24
</Layout>
25
</Customize>
26
);
27
}
28
29
export async function getServerSideProps(context) {
30
return await withCustomize({ context });
31
}
32
33