diff --git a/.env b/.env deleted file mode 100644 index efab21d..0000000 --- a/.env +++ /dev/null @@ -1,2 +0,0 @@ -NEXTAUTH_SECRET=";sadmfxflpdk" -NEXTAUTH_URL="http://localhost:3000" \ No newline at end of file diff --git a/.gitignore b/.gitignore index fd3dbb5..7e43796 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ /.pnp .pnp.js .yarn/install-state.gz +.env # testing /coverage diff --git a/app/about-us/page.tsx b/app/about-us/page.tsx deleted file mode 100644 index a54c709..0000000 --- a/app/about-us/page.tsx +++ /dev/null @@ -1,7 +0,0 @@ -import React from "react"; - -const page = () => { - return
page
; -}; - -export default page; diff --git a/app/layout.tsx b/app/layout.tsx deleted file mode 100644 index d592330..0000000 --- a/app/layout.tsx +++ /dev/null @@ -1,3 +0,0 @@ -import RootLayout from "@/app/App"; - -export default RootLayout; diff --git a/app/page.tsx b/app/page.tsx deleted file mode 100644 index 9d4589f..0000000 --- a/app/page.tsx +++ /dev/null @@ -1,3 +0,0 @@ -import Home from "@/pages/Home/Home"; - -export default Home; diff --git a/app/profile/page.tsx b/app/profile/page.tsx deleted file mode 100644 index a54c709..0000000 --- a/app/profile/page.tsx +++ /dev/null @@ -1,7 +0,0 @@ -import React from "react"; - -const page = () => { - return
page
; -}; - -export default page; diff --git a/app/sign-in/page.tsx b/app/sign-in/page.tsx deleted file mode 100644 index a54c709..0000000 --- a/app/sign-in/page.tsx +++ /dev/null @@ -1,7 +0,0 @@ -import React from "react"; - -const page = () => { - return
page
; -}; - -export default page; diff --git a/lib/next-auth.d.ts b/lib/next-auth.d.ts index f526420..eb66a0c 100644 --- a/lib/next-auth.d.ts +++ b/lib/next-auth.d.ts @@ -4,6 +4,7 @@ declare module "next-auth" { interface Session { refresh_token: string; access_token: string; + expires_in: string; } } @@ -13,6 +14,6 @@ declare module "next-auth/jwt" { interface JWT { refresh_token: string; access_token: string; - exp: number; + expires_in: string; } } diff --git a/next.config.mjs b/next.config.mjs index e8b1ccf..22adadb 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,5 +1,6 @@ /** @type {import('next').NextConfig} */ const nextConfig = { + distDir: "build", images: { remotePatterns: [ { diff --git a/package.json b/package.json index 774b7ae..f2aae33 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ }, "dependencies": { "axios": "^1.6.5", + "dotenv": "^16.4.1", "leaflet": "^1.9.4", "next": "14.1.0", "next-auth": "^4.24.5", @@ -17,12 +18,13 @@ "react-dom": "^18", "react-leaflet": "^4.2.1", "sass": "^1.70.0", + "sharp": "^0.33.2", "use-debounce": "^10.0.0", "zustand": "^4.5.0" }, "devDependencies": { "@types/leaflet": "^1.9.8", - "@types/node": "^20", + "@types/node": "^20.11.16", "@types/react": "^18", "@types/react-dom": "^18", "@types/react-leaflet": "^3.0.0", diff --git a/src/App/App.tsx b/src/App/App.tsx deleted file mode 100644 index 64c0881..0000000 --- a/src/App/App.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import "./globals.scss"; -import "./fonts.scss"; -import "./App.scss"; -import Footer from "@/widgets/Footer/Footer"; -import Navbar from "@/widgets/Navbar/Navbar"; - -export default function RootLayout({ - children, -}: Readonly<{ - children: React.ReactNode; -}>) { - return ( - - - -
{children}
-