Skip to content

Commit

Permalink
Merge branch 'main' into chore/build-arm-image
Browse files Browse the repository at this point in the history
  • Loading branch information
kilemensi committed Oct 10, 2024
2 parents 7db4b44 + 6507997 commit 8e33f4e
Show file tree
Hide file tree
Showing 12 changed files with 407 additions and 265 deletions.
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -403,9 +403,13 @@ ENV NEXT_PUBLIC_APP_LOGO_URL=${NEXT_PUBLIC_APP_LOGO_URL} \

RUN set -ex \
# Create nextjs cache dir w/ correct permissions
&& mkdir -p ./apps/civicsignalblog//.next \
&& mkdir -p ./apps/civicsignalblog/.next \
&& chown nextjs:nodejs ./apps/civicsignalblog/.next

# Node
# Subpath imports definitions
COPY --from=civicsignalblog-builder --chown=nextjs:nodejs /workspace/apps/civicsignalblog/package.json ./apps/civicsignalblog/package.json

# PNPM
# symlink some dependencies
COPY --from=civicsignalblog-builder --chown=nextjs:nodejs /workspace/node_modules ./node_modules
Expand All @@ -424,8 +428,8 @@ COPY --from=civicsignalblog-builder --chown=nextjs:nodejs /workspace/apps/civics
COPY --from=civicsignalblog-builder --chown=nextjs:nodejs /workspace/apps/civicsignalblog/.next ./apps/civicsignalblog/.next

# Payload
COPY --from=civicsignalblog-builder /workspace/apps/civicsignalblog/dist ./apps/civicsignalblog/dist
COPY --from=civicsignalblog-builder /workspace/apps/civicsignalblog/build ./apps/civicsignalblog/build
COPY --from=civicsignalblog-builder --chown=nextjs:nodejs /workspace/apps/civicsignalblog/dist ./apps/civicsignalblog/dist
COPY --from=civicsignalblog-builder --chown=nextjs:nodejs /workspace/apps/civicsignalblog/build ./apps/civicsignalblog/build

# Since we can't use output: "standalone", switch to specific app's folder
WORKDIR /workspace/apps/civicsignalblog
Expand Down
4 changes: 2 additions & 2 deletions apps/charterafrica/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"build-server": "tsc --project tsconfig.server.json",
"build-next": "NEXT_BUILD=true pnpm build-server && NEXT_BUILD=true PAYLOAD_CONFIG_PATH=${PAYLOAD_CONFIG_PATH:-dist/payload.config.js} node dist/server.js",
"build-payload": "payload build",
"dev": "NODE_OPTIONS='--inspect' ts-node --project tsconfig.server.json server.ts",
"dev": "NODE_OPTIONS='--inspect' TS_NODE_PROJECT=tsconfig.server.json tsx server.ts",
"start": "PAYLOAD_CONFIG_PATH=${PAYLOAD_CONFIG_PATH:-dist/payload.config.js} NODE_ENV=${NODE_ENV:-production} node dist/server.js",
"lint-check": "TIMING=1 eslint './'",
"lint": "TIMING=1 eslint --fix './'",
Expand Down Expand Up @@ -107,7 +107,7 @@
"playwright-config-commons-ui": "workspace:*",
"prettier": "catalog:",
"react-test-renderer": "catalog:",
"ts-node": "catalog:",
"tsx": "catalog:",
"typescript": "catalog:",
"webpack": "catalog:"
},
Expand Down
5 changes: 1 addition & 4 deletions apps/charterafrica/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,5 @@
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["build", "dist", "node_modules"],
"ts-node": {
"swc": true
}
"exclude": ["build", "dist", "node_modules"]
}
4 changes: 2 additions & 2 deletions apps/civicsignalblog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"build-next": "NEXT_BUILD=true pnpm build-server && NEXT_BUILD=true PAYLOAD_CONFIG_PATH=${PAYLOAD_CONFIG_PATH:-dist/payload.config.js} node dist/server.js",
"build-payload": "payload build",
"start": "PAYLOAD_CONFIG_PATH=${PAYLOAD_CONFIG_PATH:-dist/payload.config.js} NODE_ENV=${NODE_ENV:-production} node dist/server.js",
"dev": "NODE_OPTIONS='--inspect --conditions=dev' ts-node --project tsconfig.server.json server.ts",
"dev": "NODE_OPTIONS='--inspect --conditions=dev' TS_NODE_PROJECT=tsconfig.server.json tsx server.ts",
"lint-check": "TIMING=1 eslint './'",
"lint": "TIMING=1 eslint --fix './'",
"jest": "jest",
Expand Down Expand Up @@ -97,7 +97,7 @@
"playwright-config-commons-ui": "workspace:*",
"prettier": "catalog:",
"react-test-renderer": "catalog:",
"ts-node": "catalog:",
"tsx": "catalog:",
"typescript": "catalog:",
"webpack": "catalog:"
},
Expand Down
5 changes: 1 addition & 4 deletions apps/civicsignalblog/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,5 @@
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["build", "dist", "node_modules"],
"ts-node": {
"swc": true
}
"exclude": ["build", "dist", "node_modules"]
}
4 changes: 2 additions & 2 deletions apps/climatemappedafrica/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"build-next": "NEXT_BUILD=true pnpm build-server && NEXT_BUILD=true PAYLOAD_CONFIG_PATH=${PAYLOAD_CONFIG_PATH:-dist/payload.config.js} node dist/server.js",
"build-payload": "payload build",
"start": "PAYLOAD_CONFIG_PATH=${PAYLOAD_CONFIG_PATH:-dist/payload.config.js} NODE_ENV=${NODE_ENV:-production} node dist/server.js",
"dev": "NODE_OPTIONS='--inspect' ts-node --project tsconfig.server.json server.ts",
"dev": "NODE_OPTIONS='--inspect' TS_NODE_PROJECT=tsconfig.server.json tsx server.ts",
"lint-check": "TIMING=1 eslint './'",
"lint": "TIMING=1 eslint --fix './'",
"jest": "jest --passWithNoTests",
Expand Down Expand Up @@ -125,7 +125,7 @@
"prettier": "catalog:",
"react-test-renderer": "catalog:",
"svg-url-loader": "catalog:",
"ts-node": "catalog:",
"tsx": "catalog:",
"typescript": "catalog:"
},
"engines": {
Expand Down
5 changes: 1 addition & 4 deletions apps/climatemappedafrica/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,5 @@
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["build", "dist", "node_modules"],
"ts-node": {
"swc": true
}
"exclude": ["build", "dist", "node_modules"]
}
4 changes: 2 additions & 2 deletions apps/codeforafrica/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"build-next": "NEXT_BUILD=true pnpm build-server && NEXT_BUILD=true PAYLOAD_CONFIG_PATH=${PAYLOAD_CONFIG_PATH:-dist/payload.config.js} node dist/server.js",
"build-payload": "payload build",
"start": "PAYLOAD_CONFIG_PATH=${PAYLOAD_CONFIG_PATH:-dist/payload.config.js} NODE_ENV=${NODE_ENV:-production} node dist/server.js",
"dev": "NODE_OPTIONS='--inspect' ts-node --project tsconfig.server.json server.ts",
"dev": "NODE_OPTIONS='--inspect' TS_NODE_PROJECT=tsconfig.server.json tsx server.ts",
"lint-check": "TIMING=1 eslint './'",
"lint": "TIMING=1 eslint --fix './'",
"jest": "jest",
Expand Down Expand Up @@ -93,7 +93,7 @@
"playwright-config-commons-ui": "workspace:*",
"prettier": "catalog:",
"react-test-renderer": "catalog:",
"ts-node": "catalog:",
"tsx": "catalog:",
"typescript": "catalog:",
"webpack": "catalog:"
},
Expand Down
5 changes: 1 addition & 4 deletions apps/codeforafrica/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,5 @@
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["build", "dist", "node_modules"],
"ts-node": {
"swc": true
}
"exclude": ["build", "dist", "node_modules"]
}
4 changes: 2 additions & 2 deletions apps/roboshield/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build-next": "NEXT_BUILD=true pnpm build-server && NEXT_BUILD=true PAYLOAD_CONFIG_PATH=${PAYLOAD_CONFIG_PATH:-dist/payload.config.js} node dist/server.js",
"build-payload": "payload build",
"start": "PAYLOAD_CONFIG_PATH=${PAYLOAD_CONFIG_PATH:-dist/payload.config.js} NODE_ENV=${NODE_ENV:-production} node dist/server.js",
"dev": "NODE_OPTIONS='--inspect' ts-node --project tsconfig.server.json server.ts",
"dev": "NODE_OPTIONS='--inspect' TS_NODE_PROJECT=tsconfig.server.json tsx server.ts",
"clean": "rm -rf .next .turbo node_modules",
"jest": "jest --passWithNoTests",
"lint-check": "TIMING=1 next lint './'",
Expand Down Expand Up @@ -74,7 +74,7 @@
"jest": "catalog:",
"jest-config-commons-ui": "workspace:*",
"prettier": "catalog:",
"ts-node": "catalog:",
"tsx": "catalog:",
"typescript": "catalog:"
}
}
Loading

0 comments on commit 8e33f4e

Please sign in to comment.