mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
chore: god mode redirection URL
This commit is contained in:
parent
6c84b4f490
commit
e2d98fe2fa
BIN
admin/public/favicon/android-chrome-192x192.png
Normal file
BIN
admin/public/favicon/android-chrome-192x192.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.2 KiB |
BIN
admin/public/favicon/android-chrome-512x512.png
Normal file
BIN
admin/public/favicon/android-chrome-512x512.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.7 KiB |
BIN
admin/public/favicon/apple-touch-icon.png
Normal file
BIN
admin/public/favicon/apple-touch-icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
BIN
admin/public/favicon/favicon-16x16.png
Normal file
BIN
admin/public/favicon/favicon-16x16.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
BIN
admin/public/favicon/favicon-32x32.png
Normal file
BIN
admin/public/favicon/favicon-32x32.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
BIN
admin/public/favicon/favicon.ico
Normal file
BIN
admin/public/favicon/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 919 B |
1
admin/public/favicon/site.webmanifest
Normal file
1
admin/public/favicon/site.webmanifest
Normal file
@ -0,0 +1 @@
|
||||
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
|
@ -4,6 +4,7 @@
|
||||
"NODE_ENV",
|
||||
"NEXT_PUBLIC_API_BASE_URL",
|
||||
"NEXT_PUBLIC_DEPLOY_URL",
|
||||
"NEXT_PUBLIC_GOD_MODE_URL",
|
||||
"NEXT_PUBLIC_SENTRY_DSN",
|
||||
"NEXT_PUBLIC_SENTRY_ENVIRONMENT",
|
||||
"NEXT_PUBLIC_ENABLE_SENTRY",
|
||||
@ -16,7 +17,6 @@
|
||||
"NEXT_PUBLIC_DEPLOY_WITH_NGINX",
|
||||
"NEXT_PUBLIC_POSTHOG_KEY",
|
||||
"NEXT_PUBLIC_POSTHOG_HOST",
|
||||
"NEXT_PUBLIC_GOD_MODE",
|
||||
"NEXT_PUBLIC_POSTHOG_DEBUG",
|
||||
"SENTRY_AUTH_TOKEN"
|
||||
],
|
||||
|
@ -1,6 +1,5 @@
|
||||
import { FC } from "react";
|
||||
import Image from "next/image";
|
||||
import Link from "next/link";
|
||||
import { useTheme } from "next-themes";
|
||||
import { Button } from "@plane/ui";
|
||||
// images
|
||||
@ -10,9 +9,10 @@ import PlaneTakeOffImage from "@/public/plane-takeoff.png";
|
||||
|
||||
export const InstanceNotReady: FC = () => {
|
||||
const { resolvedTheme } = useTheme();
|
||||
|
||||
const planeLogo = resolvedTheme === "dark" ? PlaneWhiteLogo : PlaneBlackLogo;
|
||||
|
||||
const planeGodModeUrl = `${process.env.NEXT_PUBLIC_GOD_MODE_URL}/spaces?setup/?auth_enabled=0`;
|
||||
|
||||
return (
|
||||
<div className="relative h-screen max-h-max w-full overflow-hidden overflow-y-auto flex flex-col">
|
||||
<div className="flex-shrink-0 h-[120px]">
|
||||
@ -33,11 +33,11 @@ export const InstanceNotReady: FC = () => {
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<Link href={"/god-mode/"}>
|
||||
<a href={planeGodModeUrl}>
|
||||
<Button size="lg" className="w-full">
|
||||
Get started
|
||||
</Button>
|
||||
</Link>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -42,7 +42,7 @@ const nextConfig = {
|
||||
},
|
||||
{
|
||||
source: "/god-mode/:path*",
|
||||
destination: (process.env.NEXT_PUBLIC_GOD_MODE || "") + "/:path*",
|
||||
destination: `${process.env.NEXT_PUBLIC_GOD_MODE_URL || ""}/:path*`,
|
||||
},
|
||||
];
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user