diff --git a/Dockerfile b/Dockerfile
index 1b1f48dd..5298c375 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -23,6 +23,14 @@ COPY . .
RUN pnpm build
+FROM node:21-alpine3.18 AS production
+
+WORKDIR /app
+
+COPY --from=base /app/.next/standalone .
+COPY --from=base /app/.next/static ./.next/static
+COPY --from=base /app/public ./public
+
EXPOSE 3000
-CMD ["pnpm", "start"]
+CMD ["node", "server.js"]
diff --git a/next.config.mjs b/next.config.mjs
index 8fc0d49d..b049a788 100644
--- a/next.config.mjs
+++ b/next.config.mjs
@@ -1,7 +1,11 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
- reactStrictMode: false,
+ reactStrictMode: true,
+ compress: true,
+ output: 'standalone',
images: {
+ contentDispositionType: 'attachment',
+ contentSecurityPolicy: "default-src 'self'; script-src 'none'; sandbox;",
remotePatterns: [
{
protocol: 'https',
diff --git a/package.json b/package.json
index 1c5a180b..0ed7b206 100644
--- a/package.json
+++ b/package.json
@@ -23,7 +23,7 @@
"next-qrcode": "^2.5.1",
"qr-scanner": "^1.4.2",
"react": "^18.3.1",
- "react-dom": "^18.3.1",
+ "react-dom": "^18.3.1",
"react-hot-toast": "^2.4.1",
"react-markdown": "8.0.6",
"react-qr-reader": "^3.0.0-beta-1",
diff --git a/public/rpkm/baan/home/logo.svg b/public/rpkm/baan/home/logo.svg
new file mode 100644
index 00000000..4ee10aa2
--- /dev/null
+++ b/public/rpkm/baan/home/logo.svg
@@ -0,0 +1,111 @@
+
\ No newline at end of file
diff --git a/src/app/globals.css b/src/app/globals.css
index 84469129..e37b0640 100644
--- a/src/app/globals.css
+++ b/src/app/globals.css
@@ -4,13 +4,13 @@
@layer {
.bg-1 {
- background-image: url('/bg-1.svg');
+ background-image: url('https://rpkm67.sgp1.cdn.digitaloceanspaces.com/assets/bg-1.svg');
background-repeat: repeat;
background-size: cover;
}
.bg-2 {
- background-image: url('/bg-2.svg');
+ background-image: url('https://rpkm67.sgp1.cdn.digitaloceanspaces.com/assets/bg-2.svg');
background-repeat: repeat;
background-size: cover;
}
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index 24dbed21..01409c43 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -6,7 +6,6 @@ import AuthProvider from '@/context/AuthContext';
import BaanProvider from '@/context/BaanContext';
import { Toaster } from 'react-hot-toast';
import { QueryProvider } from '@/components/queryProvider';
-import Footer from '@/components/(main)/Footer';
export const metadata: Metadata = {
title: 'RPKM',
};
@@ -26,7 +25,6 @@ export default function RootLayout({
{children}
-