Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# Install dependencies only when needed
FROM node:18-alpine AS deps

# Install libc6-compat if needed
RUN apk add --no-cache libc6-compat
# Install build dependencies
RUN apk add --no-cache \
libc6-compat \
python3 \
make \
g++ \
build-base

# Install pnpm globally
RUN npm install -g pnpm
Expand All @@ -27,7 +32,7 @@ COPY --from=deps /app/node_modules ./node_modules
COPY . .

# Optional: Disable Next.js telemetry during the build
# ENV NEXT_TELEMETRY_DISABLED 1
ENV NEXT_TELEMETRY_DISABLED 1

# Build the Next.js application with pnpm
RUN pnpm run build
Expand All @@ -41,9 +46,7 @@ RUN npm install -g pnpm

# Set environment to production
ENV NODE_ENV production

# Optional: Disable telemetry during runtime
# ENV NEXT_TELEMETRY_DISABLED 1
ENV NEXT_TELEMETRY_DISABLED 1

# Create a non-root user and group
RUN addgroup --system --gid 1001 nodejs
Expand Down
57 changes: 33 additions & 24 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,26 +1,35 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'standalone',
images: {
domains: ['utfs.io'],
},
experimental: {
missingSuspenseWithCSRBailout: false,
},
async headers() {
return [
{
source: '/',
headers: [
{
key: 'Content-Security-Policy',
value: "frame-ancestors 'self' https://*.vercel.app https://*.ngrok-free.app https://secure-mobile.walletconnect.com",
},
],
},
];
},
}

export default nextConfig

output: "standalone",
images: {
domains: ["utfs.io"],
},
experimental: {
missingSuspenseWithCSRBailout: false,
},
async headers() {
return [
{
source: "/",
headers: [
{
key: "Content-Security-Policy",
value:
"frame-ancestors 'self' https://*.vercel.app https://*.ngrok-free.app https://secure-mobile.walletconnect.com",
},
],
},
];
},
webpack: (config) => {
config.module.rules.push({
test: /model-viewer/,
parser: {
amd: false,
},
});
return config;
},
};

export default nextConfig;
Loading