Compare commits

..

5 Commits

Author SHA1 Message Date
HugeFrog24 f347a6d40e UI 2026-02-14 12:52:05 +01:00
HugeFrog24 bd616e392f Add items 2026-02-14 12:37:48 +01:00
HugeFrog24 0b4f39edcb UI/UX + AI chat widget + i18n 2026-02-14 12:23:26 +01:00
HugeFrog24 39b463d1a1 Localization and AI chat widget 2026-02-14 01:19:52 +01:00
HugeFrog24 c39800a021 AI chat widget 2026-02-13 23:10:13 +01:00
5 changed files with 1196 additions and 1292 deletions
+1
View File
@@ -3,5 +3,6 @@
"messages", "messages",
"src/i18n" "src/i18n"
], ],
"snyk.advanced.organization": "512ef4a1-6034-4537-a391-9692d282122a",
"snyk.advanced.autoSelectOrganization": true "snyk.advanced.autoSelectOrganization": true
} }
+20 -33
View File
@@ -1,59 +1,43 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
# ============================================
# Stage 1: Dependencies # Stage 1: Dependencies
# ============================================ FROM --platform=$BUILDPLATFORM node:20-alpine AS deps
FROM --platform=$BUILDPLATFORM node:22-alpine3.22 AS deps
WORKDIR /app WORKDIR /app
ENV NEXT_TELEMETRY_DISABLED=1 # Install pnpm
ENV COREPACK_DEFAULT_TO_LATEST=0 RUN corepack enable && corepack prepare pnpm@latest --activate
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./ COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
RUN corepack enable \
&& corepack prepare pnpm@11.1.2 --activate \
&& pnpm install --frozen-lockfile
# ============================================
# Stage 2: Builder # Stage 2: Builder
# ============================================ FROM --platform=$BUILDPLATFORM node:20-alpine AS builder
FROM --platform=$BUILDPLATFORM node:22-alpine3.22 AS builder
WORKDIR /app WORKDIR /app
ENV NEXT_TELEMETRY_DISABLED=1 # Install pnpm
ENV COREPACK_DEFAULT_TO_LATEST=0 RUN corepack enable && corepack prepare pnpm@latest --activate
RUN corepack enable \
&& corepack prepare pnpm@11.1.2 --activate
COPY --from=deps /app/node_modules ./node_modules COPY --from=deps /app/node_modules ./node_modules
COPY . . COPY . .
ENV NEXT_TELEMETRY_DISABLED=1
RUN pnpm build RUN pnpm run build
# ============================================
# Stage 3: Runner # Stage 3: Runner
# ============================================ FROM node:20-alpine AS runner
FROM node:22-alpine3.22 AS runner
WORKDIR /app WORKDIR /app
ENV NODE_ENV=production ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=1 ENV NEXT_TELEMETRY_DISABLED=1
ENV PORT=3000
ENV HOSTNAME=0.0.0.0
RUN addgroup -S nodejs -g 1001 \ RUN addgroup --system --gid 1001 nodejs
&& adduser -S nextjs -u 1001 RUN adduser --system --uid 1001 nextjs
COPY --from=builder --chown=nextjs:nodejs /app/public ./public # Copy only necessary files
COPY --from=builder /app/public ./public
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./ COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
# Copy tenant data and message files (not included in standalone bundle)
COPY --from=builder --chown=nextjs:nodejs /app/data ./data COPY --from=builder --chown=nextjs:nodejs /app/data ./data
COPY --from=builder --chown=nextjs:nodejs /app/messages ./messages COPY --from=builder --chown=nextjs:nodejs /app/messages ./messages
@@ -61,4 +45,7 @@ USER nextjs
EXPOSE 3000 EXPOSE 3000
CMD ["node", "server.js"] ENV PORT=3000
ENV HOSTNAME="0.0.0.0"
CMD ["node", "server.js"]
+24 -24
View File
@@ -2,7 +2,7 @@
"name": "nini-artgallery", "name": "nini-artgallery",
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"packageManager": "pnpm@11.9.0", "packageManager": "pnpm@10.29.3",
"scripts": { "scripts": {
"dev": "next dev --turbopack", "dev": "next dev --turbopack",
"build": "next build", "build": "next build",
@@ -11,41 +11,41 @@
"lint:fix": "eslint --fix ." "lint:fix": "eslint --fix ."
}, },
"dependencies": { "dependencies": {
"@ai-sdk/react": "^4.0.5", "@ai-sdk/react": "^3.0.87",
"@heroicons/react": "^2.2.0", "@heroicons/react": "^2.2.0",
"@openrouter/ai-sdk-provider": "^2.10.0", "@openrouter/ai-sdk-provider": "^2.2.3",
"@types/jsonwebtoken": "^9.0.10", "@types/jsonwebtoken": "^9.0.10",
"@types/nodemailer": "^8.0.1", "@types/nodemailer": "^7.0.9",
"ai": "^7.0.4", "ai": "^6.0.85",
"jsonwebtoken": "^9.0.3", "jsonwebtoken": "^9.0.3",
"next": "16.2.9", "next": "16.1.6",
"next-intl": "^4.13.0", "next-intl": "^4.8.2",
"nodemailer": "^9.0.1", "nodemailer": "^8.0.1",
"react": "19.2.7", "react": "19.2.4",
"react-dom": "19.2.7", "react-dom": "19.2.4",
"server-only": "^0.0.1", "server-only": "^0.0.1",
"zod": "^4.4.3" "zod": "^4.3.6"
}, },
"devDependencies": { "devDependencies": {
"@eslint/eslintrc": "^3.3.5", "@eslint/eslintrc": "^3.3.3",
"@eslint/js": "^10.0.1", "@eslint/js": "^10.0.1",
"@tailwindcss/postcss": "^4.3.1", "@tailwindcss/postcss": "^4.1.18",
"@types/node": "^26.0.1", "@types/node": "^25.2.3",
"@types/react": "19.2.17", "@types/react": "19.2.14",
"@types/react-dom": "19.2.3", "@types/react-dom": "19.2.3",
"@typescript-eslint/eslint-plugin": "^8.62.0", "@typescript-eslint/eslint-plugin": "^8.55.0",
"@typescript-eslint/parser": "^8.62.0", "@typescript-eslint/parser": "^8.55.0",
"eslint": "^10.6.0", "eslint": "^10.0.0",
"eslint-config-next": "16.2.9", "eslint-config-next": "16.1.6",
"globals": "^17.7.0", "globals": "^17.3.0",
"postcss": "^8.5.16", "postcss": "^8.5.6",
"postcss-load-config": "^6.0.1", "postcss-load-config": "^6.0.1",
"tailwindcss": "^4.3.1", "tailwindcss": "^4.1.18",
"typescript": "^6.0.3" "typescript": "^5.9.3"
}, },
"pnpm": { "pnpm": {
"overrides": { "overrides": {
"@types/react": "19.2.17", "@types/react": "19.2.14",
"@types/react-dom": "19.2.3" "@types/react-dom": "19.2.3"
} }
} }
+1150 -1225
View File
File diff suppressed because it is too large Load Diff
+1 -10
View File
@@ -1,13 +1,4 @@
allowBuilds:
'@parcel/watcher': true
'@swc/core': true
sharp: true
unrs-resolver: true
minimumReleaseAgeExclude:
- postcss@8.5.16
onlyBuiltDependencies: onlyBuiltDependencies:
- "@parcel/watcher" - "@tailwindcss/oxide"
- "@swc/core"
- sharp - sharp
- unrs-resolver - unrs-resolver
- "@tailwindcss/oxide"