mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-13 00:03:27 +10:00
fix(printer): fix issue with printer service, locating the right URL of the server
This commit is contained in:
@ -31,15 +31,18 @@ FROM mcr.microsoft.com/playwright:focal as production
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y curl \
|
||||
&& curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm
|
||||
|
||||
COPY --from=builder /app/pnpm-*.yaml ./
|
||||
COPY --from=builder /app/package.json ./
|
||||
COPY --from=builder /app/server/dist ./server/dist
|
||||
COPY --from=builder /app/server/package.json ./server/package.json
|
||||
|
||||
RUN pnpm install -F server --frozen-lockfile --prod
|
||||
|
||||
COPY --from=builder /app/server/dist ./server/dist
|
||||
|
||||
EXPOSE 3100
|
||||
|
||||
ENV PORT 3100
|
||||
|
||||
@ -10,6 +10,7 @@ const bootstrap = async () => {
|
||||
const app = await NestFactory.create<NestExpressApplication>(AppModule);
|
||||
|
||||
// Middleware
|
||||
app.enableCors({ credentials: true });
|
||||
app.enableShutdownHooks();
|
||||
app.use(cookieParser());
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@ import { join } from 'path';
|
||||
import { PDFDocument } from 'pdf-lib';
|
||||
import { Browser, chromium } from 'playwright-chromium';
|
||||
|
||||
export const DELETION_TIME = 10 * 1000; // 10 seconds
|
||||
export const DELETION_TIME = 10 * 1000 * 1000; // 10 seconds
|
||||
|
||||
@Injectable()
|
||||
export class PrinterService implements OnModuleInit, OnModuleDestroy {
|
||||
|
||||
Reference in New Issue
Block a user