fix: build
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# Stage 1: Builder
|
# Stage 1: Builder
|
||||||
FROM registry.infra.mintel.me/mintel/nextjs:v1.7.10 AS builder
|
FROM registry.infra.mintel.me/mintel/nextjs:v1.7.10 AS base
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Arguments for build-time configuration
|
# Arguments for build-time configuration
|
||||||
@@ -35,12 +35,14 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
|
|||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Stage 2: Development (Hot-Reloading)
|
# Stage 2: Development (Hot-Reloading)
|
||||||
FROM builder AS development
|
FROM base AS development
|
||||||
ENV NODE_ENV=development
|
ENV NODE_ENV=development
|
||||||
CMD ["pnpm", "dev:local"]
|
CMD ["pnpm", "dev:local"]
|
||||||
|
|
||||||
# Build application
|
# Build application
|
||||||
# RUN pnpm build
|
# Stage 3: Builder (Production)
|
||||||
|
FROM base AS builder
|
||||||
|
RUN pnpm build
|
||||||
|
|
||||||
# Stage 3: Runner
|
# Stage 3: Runner
|
||||||
FROM registry.infra.mintel.me/mintel/runtime:v1.7.10 AS runner
|
FROM registry.infra.mintel.me/mintel/runtime:v1.7.10 AS runner
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import React, { useState, useEffect } from 'react';
|
import React, { useState, useEffect } from 'react';
|
||||||
import { useRecordMode } from './RecordModeContext';
|
import { useRecordMode } from './RecordModeContext';
|
||||||
import { FeedbackOverlay } from '@mintel/next-feedback';
|
import { FeedbackOverlay } from '@mintel/next-feedback/FeedbackOverlay';
|
||||||
import { RecordModeOverlay } from './RecordModeOverlay';
|
import { RecordModeOverlay } from './RecordModeOverlay';
|
||||||
import { PickingHelper } from './PickingHelper';
|
import { PickingHelper } from './PickingHelper';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user