mirror of
https://github.com/supabase/supabase.git
synced 2026-07-06 08:54:22 +08:00
* Move all studio files from /studio to /apps/studio. * Move studio specific prettier ignores. * Fix the ui references from studio. * Fix the css imports. * Fix all package.json issues. * Fix the prettier setup for the studio app. * Add .turbo folder to prettierignore. * Fix the github workflows.
39 lines
1.1 KiB
TypeScript
39 lines
1.1 KiB
TypeScript
/* eslint-disable @next/next/no-css-tags */
|
|
import { BASE_PATH, IS_PLATFORM } from 'lib/constants'
|
|
import Document, { DocumentContext, Head, Html, Main, NextScript } from 'next/document'
|
|
|
|
class MyDocument extends Document {
|
|
static async getInitialProps(ctx: DocumentContext) {
|
|
const initialProps = await Document.getInitialProps(ctx)
|
|
|
|
return initialProps
|
|
}
|
|
|
|
render() {
|
|
return (
|
|
<Html lang="en">
|
|
<Head>
|
|
{/* Workaround for https://github.com/suren-atoyan/monaco-react/issues/272 */}
|
|
<link
|
|
rel="stylesheet"
|
|
type="text/css"
|
|
data-name="vs/editor/editor.main"
|
|
href={
|
|
IS_PLATFORM
|
|
? 'https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.37.0/min/vs/editor/editor.main.css'
|
|
: `${BASE_PATH}/monaco-editor/editor/editor.main.css`
|
|
}
|
|
/>
|
|
<link rel="stylesheet" type="text/css" href={`${BASE_PATH}/css/fonts.css`} />
|
|
</Head>
|
|
<body>
|
|
<Main />
|
|
<NextScript />
|
|
</body>
|
|
</Html>
|
|
)
|
|
}
|
|
}
|
|
|
|
export default MyDocument
|