Compare commits

..

No commits in common. "ai-dev" and "master" have entirely different histories.

4 changed files with 5 additions and 11 deletions

5
.gitignore vendored
View File

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

View File

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

File diff suppressed because one or more lines are too long

View File

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