This commit is contained in:
Flatlogic Bot 2025-07-15 10:29:15 +00:00
parent 775337397e
commit ed50c46e12
4 changed files with 10 additions and 5 deletions

5
.gitignore vendored
View File

@ -1,3 +1,8 @@
node_modules/
*/node_modules/
*/build/
**/node_modules/
**/build/
.DS_Store
.env

View File

@ -5,13 +5,14 @@ COPY frontend/package.json frontend/yarn.lock ./
RUN yarn install --pure-lockfile
COPY frontend .
RUN yarn build
RUN npx next export -o out
FROM node:20.15.1-alpine
WORKDIR /app
COPY backend/package.json backend/yarn.lock ./
RUN yarn install --pure-lockfile
COPY backend .
COPY --from=builder /app/out /app/public
COPY --from=builder /app/build /app/public
CMD ["yarn", "start"]

File diff suppressed because one or more lines are too long

View File

@ -2,7 +2,7 @@
* @type {import('next').NextConfig}
*/
const output = process.env.NODE_ENV === 'production' ? 'export' : 'standalone';
const output = 'export';
const nextConfig = {
trailingSlash: true,
distDir: 'build',