Spaces:
Running
Running
allowed domains only
Browse files- app/layout.tsx +1 -2
- lib/utils.ts +1 -0
app/layout.tsx
CHANGED
|
@@ -50,8 +50,6 @@ export const viewport: Viewport = {
|
|
| 50 |
themeColor: "#4f46e5",
|
| 51 |
};
|
| 52 |
|
| 53 |
-
// todo add iframe detector, to dont allow people embedding the app in iframes.
|
| 54 |
-
|
| 55 |
export default async function RootLayout({
|
| 56 |
children,
|
| 57 |
}: Readonly<{
|
|
@@ -111,6 +109,7 @@ export default async function RootLayout({
|
|
| 111 |
{isAllowedDomain ? (
|
| 112 |
children
|
| 113 |
) : (
|
|
|
|
| 114 |
<p>
|
| 115 |
Unfortunately you don't have access to DeepSite from
|
| 116 |
this domain: {hostname}.
|
|
|
|
| 50 |
themeColor: "#4f46e5",
|
| 51 |
};
|
| 52 |
|
|
|
|
|
|
|
| 53 |
export default async function RootLayout({
|
| 54 |
children,
|
| 55 |
}: Readonly<{
|
|
|
|
| 109 |
{isAllowedDomain ? (
|
| 110 |
children
|
| 111 |
) : (
|
| 112 |
+
// todo: do something fancier here.
|
| 113 |
<p>
|
| 114 |
Unfortunately you don't have access to DeepSite from
|
| 115 |
this domain: {hostname}.
|
lib/utils.ts
CHANGED
|
@@ -10,6 +10,7 @@ export const ALLOWED_DOMAINS = [
|
|
| 10 |
"huggingface.co",
|
| 11 |
"deepsite.hf.co",
|
| 12 |
"localhost",
|
|
|
|
| 13 |
];
|
| 14 |
|
| 15 |
export const COLORS = [
|
|
|
|
| 10 |
"huggingface.co",
|
| 11 |
"deepsite.hf.co",
|
| 12 |
"localhost",
|
| 13 |
+
"enzostvs-deepsite-v4-demo.hf.space",
|
| 14 |
];
|
| 15 |
|
| 16 |
export const COLORS = [
|