enzostvs HF Staff commited on
Commit
0e97e36
·
1 Parent(s): 44ed7dd
app/deepsite/layout.tsx DELETED
@@ -1,108 +0,0 @@
1
- import type { Metadata, Viewport } from "next";
2
- import { Geist, Geist_Mono } from "next/font/google";
3
- import { NextStepProvider } from "nextstepjs";
4
- import Script from "next/script";
5
-
6
- import "@/app/globals.css";
7
- import { ThemeProvider } from "@/components/providers/theme";
8
- import { AuthProvider } from "@/components/providers/session";
9
- import { Toaster } from "@/components/ui/sonner";
10
- import { ReactQueryProvider } from "@/components/providers/react-query";
11
- import { generateSEO, generateStructuredData } from "@/lib/seo";
12
- import { NotAuthorizedDomain } from "@/components/not-authorized";
13
-
14
- const geistSans = Geist({
15
- variable: "--font-geist-sans",
16
- subsets: ["latin"],
17
- });
18
-
19
- const geistMono = Geist_Mono({
20
- variable: "--font-geist-mono",
21
- subsets: ["latin"],
22
- });
23
-
24
- export const metadata: Metadata = {
25
- ...generateSEO({
26
- title: "DeepSite | Build with AI ✨",
27
- description:
28
- "DeepSite is a web development tool that helps you build websites with AI, no code required. Let's deploy your website with DeepSite and enjoy the magic of AI.",
29
- path: "/",
30
- }),
31
- appleWebApp: {
32
- capable: true,
33
- title: "DeepSite",
34
- statusBarStyle: "black-translucent",
35
- },
36
- icons: {
37
- icon: "/logo.svg",
38
- shortcut: "/logo.svg",
39
- apple: "/logo.svg",
40
- },
41
- verification: {
42
- google: process.env.GOOGLE_SITE_VERIFICATION,
43
- },
44
- };
45
-
46
- export const viewport: Viewport = {
47
- initialScale: 1,
48
- maximumScale: 1,
49
- themeColor: "#4f46e5",
50
- };
51
-
52
- export default async function RootLayout({
53
- children,
54
- }: Readonly<{
55
- children: React.ReactNode;
56
- }>) {
57
- const structuredData = generateStructuredData("WebApplication", {
58
- name: "DeepSite",
59
- description: "Build websites with AI, no code required",
60
- url: "https://huggingface.co/deepsite",
61
- });
62
- const organizationData = generateStructuredData("Organization", {
63
- name: "DeepSite",
64
- url: "https://huggingface.co/deepsite",
65
- });
66
-
67
- return (
68
- <html lang="en" suppressHydrationWarning>
69
- <body
70
- className={`${geistSans.variable} ${geistMono.variable} antialiased`}
71
- >
72
- <script
73
- type="application/ld+json"
74
- dangerouslySetInnerHTML={{
75
- __html: JSON.stringify(structuredData),
76
- }}
77
- />
78
- <script
79
- type="application/ld+json"
80
- dangerouslySetInnerHTML={{
81
- __html: JSON.stringify(organizationData),
82
- }}
83
- />
84
- <Script
85
- defer
86
- data-domain="deepsite.hf.co"
87
- src="https://plausible.io/js/script.js"
88
- />
89
- <Toaster richColors />
90
- <AuthProvider>
91
- <ReactQueryProvider>
92
- <ThemeProvider
93
- attribute="class"
94
- defaultTheme="dark"
95
- enableSystem
96
- disableTransitionOnChange
97
- >
98
- <NextStepProvider>
99
- {children}
100
- <NotAuthorizedDomain />
101
- </NextStepProvider>
102
- </ThemeProvider>
103
- </ReactQueryProvider>
104
- </AuthProvider>
105
- </body>
106
- </html>
107
- );
108
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/layout.tsx CHANGED
@@ -34,9 +34,9 @@ export const metadata: Metadata = {
34
  statusBarStyle: "black-translucent",
35
  },
36
  icons: {
37
- icon: "/logo.svg",
38
- shortcut: "/logo.svg",
39
- apple: "/logo.svg",
40
  },
41
  verification: {
42
  google: process.env.GOOGLE_SITE_VERIFICATION,
 
34
  statusBarStyle: "black-translucent",
35
  },
36
  icons: {
37
+ icon: "/deepsite/logo.svg",
38
+ shortcut: "/deepsite/logo.svg",
39
+ apple: "/deepsite/logo.svg",
40
  },
41
  verification: {
42
  google: process.env.GOOGLE_SITE_VERIFICATION,
components/editor/project-settings.tsx CHANGED
@@ -98,7 +98,7 @@ export const ProjectSettings = ({
98
  <span className="text-3xl">{project?.cardData?.emoji}</span>
99
  ) : (
100
  <Image
101
- src="/logo.svg"
102
  alt="DeepSite"
103
  width={100}
104
  height={100}
 
98
  <span className="text-3xl">{project?.cardData?.emoji}</span>
99
  ) : (
100
  <Image
101
+ src="/deepsite/logo.svg"
102
  alt="DeepSite"
103
  width={100}
104
  height={100}
components/not-authorized.tsx CHANGED
@@ -104,7 +104,7 @@ export const NotAuthorizedDomain = () => {
104
  <DialogTitle className="hidden" />
105
  <div className="max-w-md mx-auto text-center px-6 py-12">
106
  <Image
107
- src="/logo.svg"
108
  alt="DeepSite"
109
  width={48}
110
  height={48}
 
104
  <DialogTitle className="hidden" />
105
  <div className="max-w-md mx-auto text-center px-6 py-12">
106
  <Image
107
+ src="/deepsite/logo.svg"
108
  alt="DeepSite"
109
  width={48}
110
  height={48}
components/providers/session.tsx CHANGED
@@ -3,5 +3,7 @@
3
  import { SessionProvider } from "next-auth/react";
4
 
5
  export function AuthProvider({ children }: { children: React.ReactNode }) {
6
- return <SessionProvider>{children}</SessionProvider>;
 
 
7
  }
 
3
  import { SessionProvider } from "next-auth/react";
4
 
5
  export function AuthProvider({ children }: { children: React.ReactNode }) {
6
+ return (
7
+ <SessionProvider basePath="/deepsite/api/auth">{children}</SessionProvider>
8
+ );
9
  }
components/public/navigation.tsx CHANGED
@@ -10,7 +10,7 @@ export function Navigation() {
10
  <div className="flex items-center justify-start gap-4">
11
  <Link href="/" className="flex items-center gap-2">
12
  <Image
13
- src="/logo.svg"
14
  alt="DeepSite"
15
  width={100}
16
  height={100}
 
10
  <div className="flex items-center justify-start gap-4">
11
  <Link href="/" className="flex items-center gap-2">
12
  <Image
13
+ src="/deepsite/logo.svg"
14
  alt="DeepSite"
15
  width={100}
16
  height={100}
components/viewer/blank-page.tsx CHANGED
@@ -24,7 +24,7 @@ export function BlankPage() {
24
  <div className="bg-card max-w-lg w-full px-10 py-6 z-1 rounded-xl shadow-accent-foreground mx-auto">
25
  <header className="flex flex-col items-center justify-center">
26
  <Image
27
- src="/logo.svg"
28
  alt="DeepSite"
29
  width={56}
30
  height={56}
 
24
  <div className="bg-card max-w-lg w-full px-10 py-6 z-1 rounded-xl shadow-accent-foreground mx-auto">
25
  <header className="flex flex-col items-center justify-center">
26
  <Image
27
+ src="/deepsite/logo.svg"
28
  alt="DeepSite"
29
  width={56}
30
  height={56}
lib/auth.ts CHANGED
@@ -2,6 +2,7 @@ import NextAuth from "next-auth";
2
  import type { NextAuthConfig } from "next-auth";
3
 
4
  export const authConfig = {
 
5
  providers: [
6
  {
7
  id: "huggingface",
 
2
  import type { NextAuthConfig } from "next-auth";
3
 
4
  export const authConfig = {
5
+ basePath: "/deepsite/api/auth",
6
  providers: [
7
  {
8
  id: "huggingface",
next.config.ts CHANGED
@@ -1,6 +1,8 @@
1
  import type { NextConfig } from "next";
2
 
3
  const nextConfig: NextConfig = {
 
 
4
  async redirects() {
5
  return [
6
  {
 
1
  import type { NextConfig } from "next";
2
 
3
  const nextConfig: NextConfig = {
4
+ basePath: "/deepsite",
5
+ assetPrefix: "/deepsite",
6
  async redirects() {
7
  return [
8
  {