Skip to content

Commit

Permalink
fix docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbroks committed Aug 23, 2024
1 parent ab39711 commit c602ced
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions apps/nextjs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ COPY packages/auth/package.json ./packages/auth/package.json
COPY packages/db/package.json ./packages/db/package.json
COPY packages/validators/package.json ./packages/validators/package.json
COPY packages/job-dispatch/package.json ./packages/job-dispatch/package.json
COPY packages/ui/package.json ./packages/ui/package.json

COPY apps/nextjs/package.json ./apps/nextjs/package.json

Expand Down
1 change: 1 addition & 0 deletions apps/nextjs/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ createJiti(fileURLToPath(import.meta.url))("./src/env");

/** @type {import("next").NextConfig} */
const config = {
output: "standalone",
reactStrictMode: false,

/** Enables hot reloading for local packages without a build step */
Expand Down
2 changes: 1 addition & 1 deletion apps/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"type": "module",
"scripts": {
"build": "pnpm with-env next build",
"build": "SKIP_ENV_VALIDATION=true next build",
"clean": "git clean -xdf .next .turbo node_modules",
"dev": "pnpm with-env next dev",
"format": "prettier --check . --ignore-path ../../.gitignore",
Expand Down
3 changes: 2 additions & 1 deletion packages/job-dispatch/src/config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-restricted-properties */
import { createEnv } from "@t3-oss/env-core";
import { z } from "zod";

Expand All @@ -6,7 +7,7 @@ export const env = createEnv({
AMQP_URL: z.string(),
AMQP_QUEUE: z.string().default("job_configs"),
},
// eslint-disable-next-line no-restricted-properties
runtimeEnv: process.env,
emptyStringAsUndefined: true,
skipValidation: !!process.env.CI || !!process.env.SKIP_ENV_VALIDATION,
});

0 comments on commit c602ced

Please sign in to comment.